This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes exit thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "exit thread" Watch "exit thread" New topic
Author

exit thread

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
Hi,
i have this simple code

well, i specially turned off server to test and client gets connection refused exception, but it is not getting out of the program and my console window hangs doing nothing.
What is wrong here?
thank you in advance.
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Run this code:

If you expected that bevhavior than you know what your mistake is. If you didn't, consider what happens when you run a method that doesn't return until it has already returned.
 
jQuery in Action, 2nd edition
 
subject: exit thread
 
Similar Threads
Socket Data Conversion Problem
Connection Refused Error
Chatting Applet Problem
rmi Exception
starting RMI...