dcsimg
URGENT:How to dispose thread in a multithreaded server?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jojo_Angie
Posted On:   Saturday, November 10, 2001 10:06 PM

I have a multithreaded server where it has a thread class which handles multiple connection. How can I dispose the thread so that it doesn't use up the resources unneccessarily?

Re: URGENT:How to dispose thread in a multithreaded server?

Posted By:   Alex_Chaffee  
Posted On:   Tuesday, November 13, 2001 02:15 PM

Just make sure it exits from its run() method and that no other objects are holding a pointer to it. The Garbage Collector will take care of the rest.


If you're building your own server, you may want to look into thread pooling to preserve resources.

About | Sitemap | Contact