1

what factors are necessary to decide about the thread size of excutor pool? Some mention it depends on cpu core + amount of time thread is taking, but number of cores can vary in different environment

  • What instruction set architecture is assumed? – cassandrad May 15 '20 at 10:42
  • Re, "number of cores can vary in different environment," Usually there is some means for a program to find out how many cores are available. E.g., this answer shows how a Java program can do it: https://stackoverflow.com/a/4759606/801894 . Similar means exist in other languages and/or libraries. – Solomon Slow May 15 '20 at 13:17
  • Also note: The answer is going to depend on what kind of tasks your program gives to the pool. It especially depends on whether they will mostly be compute-bound tasks, mostly I/O bound tasks, or a mix of both. Sometimes, the best way to answer is empirically: Do experiments. Measure the performance. – Solomon Slow May 15 '20 at 13:21

0 Answers0