posted 24 years ago
With an if statement, it won't loop back and check the value again. So if you say something like:
And that was in your run method, if bolValue was true, then it would wait, and then once it was notified it would skip the doThis() part.
Now if you did this with a while loop
It would wait until someBolValue became false, then skip wait() and go right into doThis(); Basically, you want to keep checking someBolValue before you doThis() and an if won't keep checking, it will only check once.
Bill