Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.63 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.63 KB

A Concurrent Traffic Simulation

This is the project for the fourth course in the Udacity C++ Nanodegree Program: Concurrency.

Throughout the Concurrency course, we developed a traffic simulation in which vehicles were moving along streets and crossing intersections. However, with increasing traffic in the city, traffic lights were required for road safety. Each intersection will therefore be equipped with a traffic light. Here, we built a thread-safe communication protocol between vehicles and intersections to complete the simulation.

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.