Defining the number of threads

Report a typo

How many threads will run this benchmark concurrently in this example?

@Benchmark
@Threads(8)
public String testThreads() {
    Map<Integer, String> map = new HashMap<>();
    map.put(1, "A");

    return map.get(1);
}
Enter a number
___

Create a free account to access the full topic