Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Practical Example of CacheThreadPool

 
Abhra Kar
Ranch Hand
Posts: 154
  • 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: 931
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: 154
  • 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
Marshal
Posts: 52636
119
  • 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: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Campbell
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!