2

How someone should decide corePoolSize of an Executor? In many application I have seen Executors with corePoolSize 5. I understand it depends upon the requirement. But requirements are not the single parameter for it. Hardware like RAM Processors also matters. Are there any thumb rules for it?

Madhan
  • 5,750
  • 4
  • 28
  • 61
GD_Java
  • 1,359
  • 6
  • 24
  • 42
  • Refer [this](http://stackoverflow.com/questions/17659510/core-pool-size-vs-maximum-pool-size-in-threadpoolexecutor) – Madhan Jun 24 '15 at 20:13
  • 1
    It does not answer my question properly. Suppose I am writing Executors.newScheduledThreadPool(100). Initiating a poolsize with 100 does not make any sense. So how to choose a value for pool size while creating an Execotor? – GD_Java Jun 25 '15 at 17:08

0 Answers0