Customized Thread pooling

S

Saverio M.

I have built my own (simple) thread manager [TM], but just found java 5 has
its own.

I'd like to use the framework's one, but I have a problem:

my TM calls a shutdown() method for a thread when it has to close it; every
thread class has its own routines inside the method.

how can I implement the same functionality using the framework's TM?

thanks!
saverio m.



Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
 
R

Robert Klemme

Saverio said:
I have built my own (simple) thread manager [TM], but just found java 5 has
its own.

I'd like to use the framework's one, but I have a problem:

my TM calls a shutdown() method for a thread when it has to close it; every
thread class has its own routines inside the method.

how can I implement the same functionality using the framework's TM?

I've not yet worked with this framework but from what I know of Doug
Lea's writing I assume you could deal with sending a special shut down
task through the queue (assuming that your threads are tasked via a
queue). HTH

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top