• 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 61694
193
  • 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: 23811
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
 
Sheriff
Posts: 23866
50
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!