Skip to content

This project synchronizes the landing of 25 randomly generates airplanes with random fuels at random time over 3 runways. The project is completed in two versions. One using semaphores and the other using mutexes.

Notifications You must be signed in to change notification settings

ankitkumarr/ThreadSynchronization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ankit Kumar	[email protected]


Project assumptions:

1) Planes can became declare emergency regardless of their fuel left
2) Planes with emergency will be given highest priority and NO OTHER flights will initiate landing until it has finished
3) If multiple planes have requested emergency, the one that has requested the latest will be landed the first.
4) If a plane enters a danger zone, it still has to wait if other plane has emergency activity requested.

Runway number starts from 0

Used:

4 binary semaphores for solving using semaphores
4 mutexes for solving using mutexes

About

This project synchronizes the landing of 25 randomly generates airplanes with random fuels at random time over 3 runways. The project is completed in two versions. One using semaphores and the other using mutexes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published