• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CorePoolSizeVsMaxPoolSizeVsQueueSize

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 20
Google Web Toolkit Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic