• Post Reply Bookmark Topic Watch Topic
  • New Topic

Practical Example of CacheThreadPool  RSS feed

 
Abhra Kar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the theoretical knowledge of FixedThreadPool and CacheThreadPool. But want to know practical scenarios where we can use FixedThreadPool and CacheThreadPool. Please Help.

Thanks
Abhra
 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write down some programme which uses them to know how to use it.
 
Abhra Kar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tushar.

But I am asking about some real life scenarios(say for database connection we use, or in any server we use for some services).
What are the areas where we need CacheThreadPool.
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever you need a certain maximum number of threads and you can cache them for future reference when they have finished their tasks.
 
Abhra Kar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Campbell
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!