Maybe this question has been asked many times before, but I never found a satisfying answer.
I have to simulate a process s
Yes, there is:
Object.wait( ), Object.notify() and a bunch of other much nicer synchronization primitives in java.util.concurrent.
java.util.concurrent