• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difficulties with Thread  RSS feed

James Teo
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.

I came across some difficulties while doing my project regarding threads. I sent a command into command prompt and was successful in this. However, I do not have any idea how to kill, pause/resume it.

I have search on the internet but it requires a while loop. But in my case, i am sending just 1 command which takes quite some time to complete. Does a while loop execute that command many times? If it does, then how would be a better method to kill, pause/resume it?

The ScanInputReader takes in JTextArea screen so that i could make the input appear.

When i use th.join(); right after th.start(); , screen does not display the results that was given when it one at a time but just a whole chunk at the end.(Pardon me for my poor english)

Thanks in advance.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!