Skip to content

Concurrent traffic simulation using C++ concurrency features.

Notifications You must be signed in to change notification settings

eilerstim/concurrent-traffic-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concurrent Traffic Simulation

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

This project is a traffic simulation in which vehicles are moving along streets and are crossing intersections. Each intersection is equipped with a traffic light to simulate real world traffic, so that a maximum of one car can be inside an intersection at a given time. A suitable and thread-safe communication protocol manages transmissions between vehicles and intersections. Concurrent programming principles (such as mutexes, locks and message queues) along with Modern C++ features are used to implement the traffic lights and integrate them properly in the code base.

Code Structure

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.

About

Concurrent traffic simulation using C++ concurrency features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published