Skip to content

henriqueio/Concurrent-Traffic-Simulation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Concurrent Traffic Simulation

Traffic Simulator

In this project I developed a multi thread traffic simulator in which vehicles are moving along streets and crossing intersections. Each intersection is equipped with a traffic light, traffic lights are needed for road safety. In this project I built a suitable and thread-safe communication protocol between vehicles and intersections to complete the simulation.

For this project I used Modern C++ with concurrency safe guards like:

  • Mutexes
  • Locks
  • Message Queues

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 C++ Concurrent Traffic Simulattion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.3%
  • CMake 1.7%