previous |
start |
next
Deadlock
- The method can lead to deadlock
- The thread sleeps to wait for balance to grow, but it still has
the lock
- No other thread can execute the synchronized deposit
method
- If a thread tries to call deposit, it is blocked until
the withdraw method exits
- withdraw method can't exit until it has funds
available
- DEADLOCK
previous |
start |
next