locks: synchronized vs ReentrantLock vs StampedLock companion code
JMH throughput sweep (1-64 threads), 9:1 read-heavy @Group benchmark, tryLock(timeout) deadlock-avoidance demo, and a JDK21-vs-JDK25 JEP 491 virtual-thread-pinning comparison. Also promotes LICENSE to repo root now that a second module exists.
This commit is contained in:
@@ -6,8 +6,8 @@ article; each module's own README has that article's version table, quickstart,
|
||||
| Module | Post |
|
||||
|---|---|
|
||||
| [`jmm`](jmm/) | The Java Memory Model Explained: volatile, happens-before, and Why Your Double-Checked Lock Failed |
|
||||
| [`locks`](locks/) | synchronized vs ReentrantLock vs StampedLock: Benchmarks and a Decision Table |
|
||||
|
||||
## License
|
||||
|
||||
MIT - see [LICENSE](jmm/LICENSE) (per-module; a repo-wide LICENSE will move here once a second
|
||||
module needs it).
|
||||
MIT - see [LICENSE](LICENSE).
|
||||
|
||||
Reference in New Issue
Block a user