Here you go Kay
i have put the sleep in the main() just to let you see what's going on.
After the program has run, you can see the sequence of events happening, how the first two threads are waiting while the third one has completes and lets the other threads run.