Java Reference
In-Depth Information
Exercise 14.8
: Experiment with the
Friendly
program. How often does
the deadlock actually happen on your system? If you add
yield
calls, can
you change the likelihood of deadlock? If you can, try this exercise on
more than one kind of system. Remove the deadlock potential without
getting rid of the synchronization.