Synchronizing simulation output generation and reading using producer and consumer threads in C++
Beginner level synchronization question here.
There’s a lot of material on how to implement producer-consumer synchronization. I really did try all variations that I thought made sense, but none seems to work and I’ve been tackling this for a few days now.