Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CorePoolSizeVsMaxPoolSizeVsQueueSize

 
xcitin java
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anyone please explain in detail what is the difference between core pool size,max pool size & queue size?
What are worker threads??

thanks in advance
 
Prabakar Kalivaradan
Greenhorn
Posts: 20
Chrome Eclipse IDE Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
core pool size - size of the thread pool(no.of worker threads working in parallel) in normal situation
max pool size - pool size can go up to this point if thread pool is busy(means all workers are busy and more jobs are there waiting and in this situation, new workers will be created); but it always attempts to stay at core size whenever idle threads present
queue size - is the no.of jobs waiting to be processed by the worker threads; when the queue is full and all worker threads are busy, no additional jobs can be submitted to the pool

worker threads - threads that are waiting for the jobs; they keep executing the available jobs in the queue, and when there are no more jobs to be done, they sit idle, but jump to work at the first sight of any new job

Have Fun.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic