Around an avenue of the city a group of ten vehicles circulates at different speeds - they take between 20 and 40 seconds going from a corner to the following one. Each corner is a traffic light that controls the traffic. Using the concepts of multithreading and sections critics, I need to create a program in C++, to simulate the movement of the traffic in five blocks.
Yeah. I was going to say this sounds like homework.Programming forums tends to shoot you down, especially because that sounds like an assignment. They'll most likely tell you to go and do it yourself.