Concurrency


Non-blocking Algorithms: an algorithm is said to be non-blocking if the suspension of one thread cannot lead to the suspension of other threads involved in the algorithm.

Blocking algorithms:

Blocking algorithms

Non-blocking algorithms:

Non-blocking algorithms

Blocking algorithms block the thread until the requested action can be performed. Non-blocking algorithms notify the thread requesting the action that the action cannot be performed.