Skip to content

LShivaRudra/OS-Assignment-2

Repository files navigation

OS-Assignment-2

AIR TRAFFIC CONTROL SYSTEM


image

Instructions for Running:

  1. Create 6 terminals:

    1. 1 cleanup
    2. 1 ATC
    3. 2 airports
    4. 2 planes

    however, you can create any number of planes and airports you want.

  2. Type the following commands in the terminal for the respective .c file:

    1. cleanup.c :
        gcc cleanup.c -o cleanup
        ./cleanup
    
    1. airtrafficcontroller.c :
        gcc airtrafficcontroller.c -o atc
        ./atc
    
    1. airport.c :
        gcc airport.c -o airport -lpthread
        ./airport
    
    1. plane.c :
        gcc plane.c -o plane
        ./plane
    

The msg-type can be assigned as follows:

  1. Planes : 1-10
  2. ATC: 22
  3. Airport: 10+airport_id
  4. Cleanup: 21

About

AIR TRAFFIC CONTROL SYSTEM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages