• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stop a thread from running

 
Moya Green
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think 7 and 8 are also true.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic