I believe the following three methods could put a thread in a waiting state: wait(), sleep(), join(). Is this true?
I seem to remember something that states there's a sleeping state. Or is this a subset of waiting state?
What state does yield() cause for the currently executing thread?
posted 12 years ago
Yield puts a thread from running state back to runnable. From there the thread can go immediately back to running, or stay in runnable until it gets rescheduled to go back into running (that's because another thread gets a go at the cpu).