Java Concurrency In Practice - Chapter 2 Notes
Book Notes
Chapter 02 - Thread Safety What is thread-safety? Example - a stateless servlet Atomicity Race conditions Compound actions Locking Intrinsic locks Guarding state with locks Liveness & Performance Concurrency is more about achieving thread-safety, than it is about creating & managing threads. Those are mechanisms, but at its core, concurrency aims to encapsulate shared mutable state from uncontrolled concurrent access.
Shared mutable state - properties of a class and/or properties of a dependent class (usually part of the class’ properties).
[Read More]