Příklad
TBD

Řešení
Z důvodů výkonosti se vyvarujte použití sleep().
Raději použijte wait() a notifyAll().