Relative Content

Tag Archive for c++multithreadingconditional-variable

Synchronize three Threads in C++ one after the other

This is in continuation to this really nice one: /a/33500554/22598822. That post was for the sequence (t1 & t2) –> t3. Let’s say I have a program running, and there are three threads that I want to keep in an inner execution sequence t1 –> t2 –> t3 (other threads may or may not be running simultaneously on the system). How can it be done?