File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Stop a thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Stop a thread " Watch "Stop a thread " New topic

Stop a thread

Javix Protocol
Ranch Hand

Joined: Mar 21, 2000
Posts: 57
Jpeople out there please reply this
If the stop() method is deprecated how will u stop a thread.(literally).

The Javix

Write Once , Run Anytime ,Anywhere Forever And Smile Happily.
Eric Barnhill

Joined: Feb 25, 2000
Posts: 233

Use a boolean variable as a flag.
Don't get me started about those stupid light bulbs.
subject: Stop a thread