Concurrent Programming with Java
Lab Manual, Version 1.0, F. Astha Ekadiyanto, 2002.

[Contents] [Next] [Previous]


Lab 5: Monitors and Thread Synchronization 1

In this Lab we will learn about:

So far, we have only worked with independent, asynchronous threads. That is, each thread ran at their own pace without concern over the state or activities of any other concurrently running threads.
However, there are many interesting situations where separate, concurrently running threads do share data and must consider the state and activities of other threads.

Now, we will start to have some practice about them.


Note: Most of the codes and programming parts are taken from other sources. Thus, acknowledgements are made to their intelectual properties whenever used in this lab.

[Contents] [Next] [Previous]