-
Create 6 terminals:
- 1 cleanup
- 1 ATC
- 2 airports
- 2 planes
however, you can create any number of planes and airports you want.
-
Type the following commands in the terminal for the respective
.c
file:- cleanup.c :
gcc cleanup.c -o cleanup ./cleanup
- airtrafficcontroller.c :
gcc airtrafficcontroller.c -o atc ./atc
- airport.c :
gcc airport.c -o airport -lpthread ./airport
- plane.c :
gcc plane.c -o plane ./plane
- Planes : 1-10
- ATC: 22
- Airport: 10+
airport_id
- Cleanup: 21