Lets say we have two Threads A, B and one Mutex (Shared resource) M.
I start the A thread (a.start()), and it will call a synchronized method in M and it causes A to wait(). How can the thread B (b) follow A after A enters wait() ?
thanks
EDIT:
Is there a method "similar" to join() in which the thread b will join the thread started a when it is in WAITING state? (As I found , join() will happen when the thread finishes, but i don't want that to happen
getState()
have to do with it? – user207421