Skip to content

wingFire-29/Traffic-Manangement-System

Repository files navigation

Traffic Deadlock Prevention System

A traffic management system that models intersections as resource allocation problems and uses the Banker's Algorithm to prevent deadlocks.

Concept

In this system:

  • Each direction of traffic (North, South, East, West) is modeled as a process
  • Green signals and lanes are modeled as resources
  • The Banker's Algorithm is used to detect and prevent potential deadlocks
  • A simulation visualizes traffic flow and demonstrates deadlock prevention

Project Structure

  • src/: Source code
    • algorithm/: Implementation of the Banker's Algorithm
    • simulation/: Traffic simulation logic
    • ui/: User interface components
  • assets/: Images and other static resources
  • tests/: Test cases

Getting Started

  1. Install dependencies: pip install -r requirements.txt
  2. Run the simulation: python src/main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors