Parallel Programming WS 2014/2015 - Slide 24
Objectives:
Understand condition synchronization in Java
In the lecture:
Explain
- meaning of wait, notifyAll; and notify;
- more than one waiting condition;
- when to use notify or notifyAll;
- consequences of signal-and-continue semantics.
Questions:
- Construct a situation where a condition C holds before a call of notifyAll, but does not hold after the wait operation that is executed in the released process. Use interleaved execution to demonstrate the effects.
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 09.10.2014