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:
-
compile files (to bin folder):
javac -d bin Simulator.java
-
run simulation (from bin folder):
java -cp bin Simulator "input-file.txt"