Skip to content

mlsdpk/concurrent-traffic-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Concurrent Traffic Simulation

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

The project is a traffic simulation in which vehicles are moving along streets and are crossing intersections. However, with increasing traffic in the city, traffic lights are needed for road safety. Each intersection will therefore be equipped with a traffic light. Entire project is implemented with a suitable and thread-safe communication protocol 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.

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

Traffic Simulation Project using Multi-threading Concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published