Code examples for the following Java concurrency and parallelism topics:

  • processes and threads
  • thread
  • synchronized
  • wait/notify
  • volatile
  • liveness
  • immutable objects
  • locks
  • atomic
  • synchronizers (semaphore, barriers, exchanger)
  • executors
  • future
  • completable future
  • synchronized collections
  • concurrent collections
  • fork/join
  • parallel streams
  • parallel arrays
  • utilities