What is the best number of threads in parallel programs in java?
Asked
Active
Viewed 37 times
1 Answers
1
NoT<= (noc) / (1 - bf) NoT- Number of threads noc- number of cores Bf - block factor For best performance No of cores -1

Kommaraju Nitish sai
- 26
- 2
-
2This formula ignores the effects of blocking I/O, synchronization, garbage collection and various kinds of memory contention. It is not predictive for typical Java programs. – Stephen C Sep 18 '19 at 14:38