AlgoGymPreparationInterview Preparations
Cool NotesJava concurrency basics
All notes

Java concurrency basics

Languages · Original AlgoGym revision note with a source for deeper study.

Languages
  1. A race occurs when correctness depends on thread timing; shared mutable state needs coordination.
  2. Prefer higher-level concurrent collections and executors to ad hoc thread management.
  3. Visibility and atomicity are separate properties; volatile does not make compound updates atomic.
Read more at Oracle Java documentation