Since stop() is deprecated. I want to stop thread where there is no synchronization
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rajesh_Arora
Posted On:   Monday, September 13, 2004 12:16 AM

What is the best way to stop a thread?

Re: Since I stop() is deprecated. I want to stop thread where there is no synchronization

Posted By:   Rajesh_Arora  
Posted On:   Monday, September 13, 2004 01:24 AM

Its better to maintain a monitor variable and based on some condition make a thread null e.g.


if (i==12){
myThread==null;
}

About | Sitemap | Contact