Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Concurrent Traffic Simulation

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

Throughout the Concurrency course, a traffic simulation has been developed 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. In this final project, the goal is to build a suitable and thread-safe communication protocol between vehicles and intersections to complete the simulation. Using knowledge of concurrent programming (such as mutexes, locks and message queues) traffic lights are integrated 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

A concurrent simulation of vehicles travelling through a city

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages