Link to home
Start Free TrialLog in
Avatar of BHUSHANGEETE
BHUSHANGEETE

asked on

Thread Pool using java 5 and queue

How do we write Thread Pool using java 5.
I want to create Thread Pool from which i should be able to run and queue the task.

I mean that
 
 runThread(Runnable r)
 checkavailableThreadsInPool
 getActiveThreadCount - returns number of active Thread

Any suggestion , sample code?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BHUSHANGEETE
BHUSHANGEETE

ASKER

In this we cant control number of threads running now.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin