OperatingSystems-Concurrency-JunctionManagement

Implementation of a Junction management system. There are 4 lanes which intersect with each other. Trains can enter a lane from the directions as shown in the figure. Deadlocks are detected and resolved accordingly.