Skip to content

A simulation of a taxi transport system using semaphores and mutual exclusion to synchronize the taxi and people threads.

License

Notifications You must be signed in to change notification settings

x-ned-zone/os-project-semaphores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-project-semaphores

About.

This Simulation uses Java threads, to simulate the movement of people between branches using the taxi. Semaphores and mutual exclusion are used to synchronize the taxi thread and the people thread.

How to run:

  1. compile files (to bin folder):

    javac -d bin Simulator.java

  2. run simulation (from bin folder):

    java -cp bin Simulator "input-file.txt"

About

A simulation of a taxi transport system using semaphores and mutual exclusion to synchronize the taxi and people threads.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages