Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
It is sorta covered in the
JavaRanch Style Guide
subject: Thread stopped working
Thread's priority, why doesn't work?
background process on tomcat 4
How to stop all spammed threads?(please help)
join() and completely stopping a thread
Doubt in Thread
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013