A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Threads and Synchronization
Thread stopped working
Joined: Nov 02, 2010
Nov 02, 2010 06:55:39
I wrote a Thread class, for which there will be a run() method.
In that run(), I added a while(true) loop.
While executing the thread, it started fine.
run() method is running fine and is printing some messages (messages which I wrote in System.out.println() )
All of a sudden, my thread stopped working.
I did not get any exception when the thread stopped working.
Can I know what could be the possible reasons for my thread not to work?
When I restart the program, it worked fine.
Thanks in advance.
Stephan van Hulst
Joined: Sep 20, 2010
Nov 02, 2010 07:36:29
Sounds like a deadlock, or starvation or something. You'll have to post your code, otherwise we can't help you.
Oh, and please
subject: Thread stopped working
join() and completely stopping a thread
background process on tomcat 4
Doubt in Thread
How to stop all spammed threads?(please help)
Thread's priority, why doesn't work?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014