Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Customized Thread pooling

Thread view: 
Saverio M. - 03 Jul 2006 09:53 GMT
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.
Robert Klemme - 03 Jul 2006 11:00 GMT
> I have built my own (simple) thread manager [TM], but just found java 5 has
> its own.
[quoted text clipped - 5 lines]
>
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.