File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread stopped working

 
srikrishna mandala
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Bartender
Pie
Posts: 4818
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a deadlock, or starvation or something. You'll have to post your code, otherwise we can't help you.

Oh, and please UseCodeTags!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic