-
Terminating Threads
I've got a SERVER that spawns unlimited number of HANDLERs to handle each
connection from different clients.
My SERVER extends Thread and the HANDLER implements Runnable.
The situation happens, when I need to terminate my SERVER and it
automatically stops all the HANDLERs that spawned from this server.
I have a few servers for different purpose, so I cannot use System.exit(0)
method to stop the server.
I'm not sure if calling interrupt() method on the SERVER will actually stops
all the spawned HANDLERs.
Opinions?
--
Best Regards,
Wing Hoe
---------------------------------------------------------------
Email: winghoe@hotmail.com
ICQ: 2213281
www: http://pwp.maxis.net.my/winghoe
Job Seeking Status : Active
Availability : May 2001 (after degree course finish)
---------------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks