This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes stop a thread from running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "stop a thread from running" Watch "stop a thread from running" New topic
Author

stop a thread from running

Moya Green
Ranch Hand

Joined: Jan 24, 2002
Posts: 49
I am not quite sure about the following methods acting on threads, please correct me. Thank you!
which cannot directly stop a thread from executing?
1)call stop()//false
2)call wait() //false
3)call yield() // false
4)call notify() //true
5)call notifyAll() //true
6)call SetPriority //true
7)call start() on another Thread objeact //false
8)call read method on InoutStream object //false
9)exist from a synchronized block//true
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
I think 7 and 8 are also true.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stop a thread from running
 
Similar Threads
Stopping of Thread
Stopping of Thread
Doubt in Marcus ex#2
threads!
Stopping an infinite loop