• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads: Deprecated Methods

 
Travis Benning
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am really focusing on Threads. I believe that is why I failed my test. So I'm browsing through study books and Vel's notes, and the all say that stop, suspend, resume, etc... are deprecated.
My question is, will we have to know them on the exam? I didn't see them on my first exam. Maybe I was lucky.
Also, how much of the join() do I need to know. Not to many people go over that to much.
All Help is a Appreciated,
Travis B.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deprecated methods are not tested in the exam. Well, maybe you should know that they are
Main facts about join:
It may throw a checked exception: InterruptedException. This means that a thread who is waiting for the death of another can be interrupted by other thread with the interrupt method.
aThread.join() causes the thread that is executing this command to wait untill the thread aThread dies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic