Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 58829
179
  • 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: 23484
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: 23491
46
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!