java:threads:wait-notify-producer-consumer
Differences
This shows you the differences between two versions of the page.
java:threads:wait-notify-producer-consumer [2024/01/17 03:05] – created odefta | java:threads:wait-notify-producer-consumer [2024/01/17 03:05] (current) – odefta | ||
---|---|---|---|
Line 90: | Line 90: | ||
Synchronized Block**: Both wait and notify are called within a synchronized block to ensure that the thread holds the monitor' | Synchronized Block**: Both wait and notify are called within a synchronized block to ensure that the thread holds the monitor' | ||
- | This example showcases a typical use case for wait, notify, | + | This example showcases a typical use case for wait and notify |
java/threads/wait-notify-producer-consumer.1705453509.txt.gz · Last modified: 2024/01/17 03:05 by odefta