Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Sizes of thread pools  RSS feed

 
Ranch Hand
Posts: 227
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have any Upper size limit for CachedThreadPool ?
 
Marshal
Posts: 59711
187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't hijack discussions by adding unrelated questions to them. Fortunately I can split you into a new discussion.
Have you been through the documentation? Is there such a class as CachedThreadPool at all? I couldn't see anything about size in the relevant documentation at all.
 
author
Sheriff
Posts: 23566
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Trying to guess what the OP is trying to ask...

In the Executors class ...

https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html

which is a convenience class for executors, there is a couple of cached thread pools methods. If this is the method call being asked, then the executor service being returned has an asked default size of zero threads, and a max thread size of MAX INT threads.

Henry
 
Sheriff
Posts: 23640
48
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although in practice a program which used a billion threads might not run very well, or might not run at all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!