Sequential Consistency
Familiarize yourself with sequential consistency in C++.
We'll cover the following
Let us dive deeper into sequential consistency. The key for sequential consistency is that all operations on all threads obey a universal clock. This universal clock makes it quite intuitive to think about it.
The intuitiveness of the sequential consistency comes with a price. The downside is that the system has to do a lot of work to keep the threads in sync. The following program synchronizes the producer and the consumer thread with the help of sequential consistency.
Get hands-on with 1400+ tech skills courses.