Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on exercise about Thread(2)

 
brian
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which two CANNOT directly cause a thread to stop executing?
a. exiting from a synchronized block
b. calling the wait method
c. calling the notify method on an object
d. calling a read method on an InputStream object
e. calling the setPriority method on a Thread object
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic