2014-02-28, 10:02 PM
You can wake up specific thread by using notify().
E.g. When the dealer wants to wake up a waiting player 1, use player1.notify();
When player 1 wants to wake up the dealer, use dealer.notify(); Players need to have a reference to the dealer of course.
E.g. When the dealer wants to wake up a waiting player 1, use player1.notify();
When player 1 wants to wake up the dealer, use dealer.notify(); Players need to have a reference to the dealer of course.

