Example of deadlock. When a boy bows, he must remain bowed while the person he's greeting is also bowed. Leads to deadlock if the 2nd person bows before the first is done. Click the green flag to start, space bar to reset.