Git Product home page Git Product logo

thtinguy / os Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonicfrog/os

0.0 2.0 0.0 138.48 MB

Repository for the Operating Systems course @ EPFL

C 96.54% Makefile 0.30% Assembly 2.03% C++ 0.57% Objective-C 0.29% Shell 0.06% Perl 0.12% Clojure 0.01% Awk 0.01% SourcePawn 0.01% Python 0.04% Yacc 0.02% Lex 0.01% UnrealScript 0.01% Scilab 0.01% XS 0.01% Perl 6 0.01% Groff 0.01% M4 0.01%

os's Introduction

Dummy Scheduler

Levels of priority

To handle the 5 different levels of priority; We chose to implement a linked list for each level of priority. As such, when a new task is recieved it is inserted in the list of appropriate level of priority. (enqueue_task_dummy(...))

Aging

All task in list will age on 'Ticking' (task_tick_dummy(...)). If a task has aged too much it will be moved at the tail of the next more prioritized task list. (lower priority value, if it was in priority list 4 it will go to priority list 3).

Picking the next task

Going from the most prioritized task list to the least (so in increasing priority value order) the scheduler checks if the task list is not empty, if it is it looks in the next task list. If it's not then the first task of the list will become the current task. (pick_next_task_dummy(...))

os's People

Contributors

toverney avatar

Watchers

James Cloos avatar Nguyen Thai Tinh avatar

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.