This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BadThreads.java InterruptedException

 
Tom Turner
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a bit confused how InterruptedException always seems to be thrown when CorrectorThread is run in the code below. It always prints "Mares do eat oats1." What is causing this Interrupt? Is it the JVM deciding to do it or something? I am new to Threads :-)

Cheers,



 
Tom Turner
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uhm ok please ignore this lol. I need new glasses. I thought the statement message = "Mares do eat oats1."; was inside the catch block. Doh!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic