Ok, let's say I don't use sleep(). Here's what I'm trying to do and can't seem to figure out the way.
I create n number of threads
in the run() method:
if(function returns false){
...
Type: Posts; User: evthim
Ok, let's say I don't use sleep(). Here's what I'm trying to do and can't seem to figure out the way.
I create n number of threads
in the run() method:
if(function returns false){
...
Let's say I call Thread.currentThread().wait(), then a couple of lines down I call Thread.currentThread().sleep(2000) in a while loop.
Several lines after that, if a condition is met, I call...