Giter Club home page Giter Club logo

scheduling-simulator's Introduction

SCHEDULING SIMULATOR

Scheduling simulator is a Advanced Operating System assignment which requires to implement a simulator of different scheduling algorithm.

Current supported scheduler:

  • Short job first.
  • Round Robin.
  • Rate monotonic.
  • Earliest deadline first.
  • Lottery scheduling.

How to build it?

Dependencies

For developers

  • Autotools suite.
  • Python3 with yaml module (For integration tests).

For users

  • UNIX plataform.
  • C++ compiler with c++14 support.

Building it

The project uses Autotools. Thus, the building steps are the common three steps to build:

#Download the tar ball from Github.
wget https://github.com/vicentebolea/scheduling-simulator/releases/download/v0.0.2/scheduling-simulator-0.0.2.tar.gz

#untar
tar xf scheduling-simulator-0.0.2.tar.gz

# configure the project
cd scheduler..
./configure --prefix `pwd`/build

# Optional, check the unit tests
make check

# Compile and install it
make install

How to run it?

The binary called scheduler_sim will be installed in the prefix/bin folder. Here are the different options that scheduler_sim supports:

simulator_sim -s SCHEDULER [OPS] -i FILE
    -s SCHEDULER: SJF,RR,RM,EDF,LT
    -i FILE:      If file is -, it will read the input from stdin
    [OPS]: 
      -q #:         Quantum (For RR and LT).
      -e #:         Ending time (For RM and EDF).
      -f:           For LT to use most probable proccess.

CONTRIBUTION

scheduling-simulator's People

Contributors

vicentebolea avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

scheduling-simulator's Issues

make check error

When I run make check I get the following error:

stdin_reader.cc: In member function ‘virtual std::vector<std::__cxx11::basic_string<char> > scheduler_simulator::StdinReader::next()’:
stdin_reader.cc:29:8: error: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Werror=unused-result]
   fgets(line, SCHEDULER_SIMULATOR_INPUT_LINE_LENGTH, stdin);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.