GithubHelp home page GithubHelp logo

jdhart7 / schedulingsimulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23 KB

Simulates a fixed priority rate-monotonic scheduling algorithm. Randomly generates tasks and deadlines.

Home Page: https://dehart.dev/projects/schedulingDom.html

HTML 100.00%
fixed-priority-algorithm processor-utilization algorithm dynamic-algorithm scheduling-algorithms

schedulingsimulator's Introduction

ScedulingSimulator

Simulates a fixed priority rate-monotonic scheduling algorithm. Randomly generates tasks and deadlines. This program aims to show how the fixed priority rate monotonic algorithm and the Deadline Driven algorithm look when used as outlined in the paper Scheduling Algorithms for Multipogramming in a Hard-Real-Time Environment by Liu and Layland . In the paper, it is outlined that the fixed priority algorithm can only consistantly achieve a processor utilization that is the below the average of the runtimes and the request periods. For more information, see section 5 on acievable processor utilization.

The fixed priority algorithm works by completing the shortest task first, then moving on to the next. If a shorter period ends before the current task is completed (meaning a task higher on the Gantt diagram arrives before the current task is completed, in the Gantt diagrams showed), the shorter period has a higher priority and therefore would preempt (or interrupt) the current task.

In the dynamic algorithm, the tasks are scheduled on-the-fly based on which deadline is closest. At each time interval, there are two choices: either work on the current task or move on to another. For this algorithm, it will only move to another task when it's finished with the current task or a task arrives who has an earlier deadline. The priorities, therefore, must be determined on each time interval. While this algorithm is more complicated, it has a guaranteed processor utilization of up to 100%, meaning that as long as the processor utilization is under 100%, the dynamic scheduling algorithm is feasible.

-John DeHart

schedulingsimulator's People

Contributors

jdhart7 avatar

Stargazers

 avatar

Watchers

 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.