Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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: 63378
205
  • 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
Posts: 23816
140
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
 
Marshal
Posts: 24188
54
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!