例子
Java · 3 notes
- 6.30 Producer-Consumerhistorical
Producers and consumers wait when conditions are unmet and wake one another when work can proceed. These notes compare wait/notify and two-Condition approaches.
- 6.37 Deadlockhistorical
Java examples create a deadlock and inspect thread states to show how mutual waiting prevents progress.
- Multithreaded Folder Size Statisticshistorical
Directory-size calculation is split across threads and their results combined, illustrating how to organize parallel tasks.