x-ned-zone / os-project-semaphores

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%