Skip to content

mindrunner/airport-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airport-sim by Lukas Elsner

The task was to develop an airport simulator using C and POSIX threads. The airport should have one runway, which is the critical resource, that cannot be used at the same time by multiple threads. The planes should land and take-off randomly based on given probabilities and being parked in the bay of the airport, which can hold op to ten planes.

Compile and run:

  1. cd src/ - to change into src directory
  2. compile
  3. make -f Makefile.make - to compile airport-sim with make
  4. or "cmake . && make" - to compile airport-sim with CMake
  5. ./airport-sim -h - for help
  6. ./airport-sim - for starting with default probability values (50,50)
  7. ./airport-sim 30 70 - for starting with custom probability values (30,70)

Run 'doxygen doxy.gen' to regenerate source code documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published