Concurrent Programming with Java
Lab Manual, Version 1.0, F. Astha Ekadiyanto,
2002.
In this Lab we will learn about:
What we have done so far is to have a synchronization scenario of Threads on a single common shared object which may introduce a Race Condition.
But what if we need to have more monitors? More objects to share? Is there any other issue other than the Race Condition problem?
In this Lab. we will observe the situation on multiple synchronization. First of all we will observe a simple condition how a deadlock and starvation can occur (which is the very obvious one). Then we will observe a more common problem in synchronization which is called the Dining Philosopher problem. And finally you would be challenged to code a problem solution for the deadlock condition.