-1

What is the best number of threads in parallel programs in java?

1 Answers1

1

NoT<= (noc) / (1 - bf) NoT- Number of threads noc- number of cores Bf - block factor For best performance No of cores -1

  • 2
    This 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