Concurrency - Synchronization

> (Data|State) Management and Processing > (Concurrency | Parallel | Asynchronous) programming

1 - About

Synchronization insures thread safety by preventing the same code being run by two different threads at the same time.

Synchronization can introduce thread contention, which occurs when two or more threads try to access the same resource simultaneously.


3 - Synchronize the activities of threads

Warying ways to synchronize the activities of threads.

  • monitors,
  • locks,
  • latches,
  • atomic operations,
  • delayed tasks,
  • future tasks,
  • barriers,