![]() |
![]() |
|
02152 Concurrent Systems Fall 2008 |
Mini Lab 1: Java Threads |
Home | Plan | Material |
To get the first experience with concurrent Java threads.
This lab requires that you have installed Java Developoment Kit (JDK) (any version above 1.1 will do). It may also be carried out in the data bars.
See the note about processes and threads [Proc 4] for a description of threads in Java.
You should make sure that the main thread (``Uncle Donald'') waits for the nephews to stop shouting [hint: use join()].
You may try to move the mouse or activate some other program while the Java-program is running. Does it have any impact?
Explain your observations.
Enjoy!
Hans Henrik Løvengreen, Sep 4, 2008 |