It's not a secret anymore!
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
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.
I agree. Here's the link:
subject: Stop a thread
jQuery in Action, 3rd edition