Is mutex and/or conditional_variable really needed in this multithreaded program?
Is mutex and/or conditional_variable really needed in this multithreaded program?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/2641038/lion-lai)Lion Lai
(stackoverflow.com/users/131930/jeremy-friesner)Jeremy Friesner
(stackoverflow.com/users/5494370/alan-birtles)Alan Birtles
(stackoverflow.com/users/179910/jerry-coffin)Jerry Coffin
A special thanks goes out to the (https://stackoverflow.com/questions/77706766/is-mutex-and-or-conditional-variable-really-needed-in-this-multithreaded-program)Stackexchange community
I wish you all a wonderful day! Stay safe :)
c++ multithreading race-condition