Java Professional — Medium
Key points
- `notify()` wakes one thread; `notifyAll()` wakes all
- Prevents potential thread starvation
- `notify()` is non-deterministic; `notifyAll()` is deterministic
Ready to go further?
Related questions
Java Professional — Medium
Key points
Ready to go further?
Related questions