Simpsons 4-Slot Algorithm

Simpsons 4-Slot Algorithm is an algorithm for controlling access to a shared variable that does not need any locks or Mutexes.

Idea is to duplicate the shared state 4 times into a 2 × 2 2 2 2\times 2 array d, and to use 4 atomic control bits to synchronize access:

This algorithm does not have any critical section.

https://arxiv.org/pdf/2112.06233