Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.57 KB

File metadata and controls

28 lines (21 loc) · 1.57 KB

CPPND: Program a Concurrent Traffic Simulation

traffic simulation in which vehicles are moving along streets and are crossing intersections. Each intersection will be equipped with a traffic light. In this project a suitable and thread-safe communication protocol between vehicles and intersections is implemented along side multithreaded programming and shared data resourse and protection mechanisms (such as mutexes, locks and message queues) to implement the traffic lights vechiles and intersections and integrate them properly in the code.

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.