Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Threads
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Threads and Synchronization
Number of working threads using java executor framework
arpan mukherjee
Greenhorn
Posts: 1
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm creating a
java
thread
pool using java 1.5 executor framework.
private ExecutorService executorService = Executors.newFixedThreadPool(threadPoolSize); public <T> Future<T> submit(Callable<T> task) { return executorService.submit(task); }
Now I want to get the number of working thread at runtime. Is there any java api available to do this using java 1.5 executor framework?
thushara wijeratna
Greenhorn
Posts: 9
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i think this is difficult to get as the design goals of the Executor framework was to largely hide the underlying thread details from the user.
perhaps you can describe what you are trying to do, and we can think of another way to do that?
http://thushw.blogspot.com
The only cure for that is hours of television radiation. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
THREADS
Parent Thread should wait till all child thread are dead
Methods for threads?
Issue with executor thread pool
Executor and applets
More...