Giter VIP home page Giter VIP logo

os-assignment-2's Introduction

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

os-assignment-2's People

Contributors

lshivarudra avatar hritik003 avatar

Stargazers

 avatar  avatar

Watchers

 avatar Surya Chitti avatar

os-assignment-2's Issues

Problems with the current airport.c(after commit fff22f4)

  • Unable to access data from the 'msg_recv_atc'.
  • Have to confirm the method of using 'val' in line 136.
  • The while loop(line 127) has no exit condition. This can lead to infinite loop.
  • Not sure about the usage of mutex. In the current code, lock is used only during the boarding/deboarding and takeoff/landing delays(sleep(2) and sleep(3)). What about the condition that no other plane should be given a runway when it is allotted another plane.
  • What about the condition that a plane should not be given the backup runway when there exists a suitable runway which is currently in use?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.