A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
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
I agree. Here's the link:
subject: Thread stopped working
Thread's priority, why doesn't work?
join() and completely stopping a thread
Doubt in Thread
How to stop all spammed threads?(please help)
background process on tomcat 4
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015