Next: Threads Example 7.1: Deadlock
Up: Java Notes
Previous: Threads Example 6.2: Synchronized
- More than one lock (resource): Two or more threads each waiting on objects locked by another
- Deadlock prevention
- Indefinite postponement, Live lock
- Examples
-
synchronized
blocK:
synchronized(resource1){
Ananda Amatya
9/15/1999