cf1a561443
* JAVA-24659 | moving runflag inside consumer and producer. it makes no sense to have it inside * JAVA-24659 | using atomic integer for sequence, and moving thread.sleep() in the same place * JAVA-24659 | enhanced logic for simplicity |
||
---|---|---|
.. | ||
src | ||
README.md | ||
pom.xml |
README.md
Relevant Articles:
- Binary Semaphore vs Reentrant Lock
- Bad Practices With Synchronization
- Start Two Threads at the Exact Same Time in Java
- Volatile Variables and Thread Safety
- Producer-Consumer Problem With Example in Java
- Acquire a Lock by a Key in Java
- Differences Between set() and lazySet() in Java Atomic Variables
- Volatile vs. Atomic Variables in Java
- What Is “Locked Ownable Synchronizers” in Thread Dump?
- Understanding java.lang.Thread.State: WAITING (parking)