/concurrency-traffic-simulation

A traffic simulation consisting of cars trying to pass traffic lights and an intersection. Demonstrates key concurrency concepts in C++ such as mutexes, locks and message queues. OpenCV has been used to build the graphical sections

Primary LanguageC++

Concurrent Traffic Simulation

Simulation of the Arc de Triomphe roundabout in Paris

(However, note that this animation does not even begin to show the true magnitude of the traffic hell out there. Check this out for reference : https://www.youtube.com/watch?v=FXfGZF2-sUU)

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./traffic_simulation.