Giter Site home page Giter Site logo

python-rts's Introduction

python-rts

This library provides various functions for real time systems related calculations.

NOTE: currently under development. Not all functions are implemented yet. PR's/improvements welcome! Also, this library is limited to periodic tasks and is not planned to be extended furthermore in the future. Feel free to fork and extend on your own!

Content

Types

  • PTask - Periodic Task with parameters: Period p, Execution Time e, Phase fi and (relative) Deadline d
  • TaskSet - Set of periodic Tasks, takes list of PTask‘s
  • Processor - CPU with parameter core count, returns Single-Core Processor by default

Procedures

For Rate Monotonic Scheduling (RMS):

  • Scheduling Tests:
    • Liu-Layland Test
    • Rate Monotonous Analysis
    • Hyperbolic Bound
    • Burchard Test
    • SR Test
  • Partitioning Procedures:
    • RM Next Fit
    • RM First Fit
    • RM First Fit with Decreasing Utilization
    • RM Small Task
    • RM General Task (TbA)
    • RM Best Fit (TbA)
    • RM Worst Fit (TbA)
  • Global Procedures:
    • Adaptive TkC
    • RM Utilization Separation

For Earliest Deadline First Scheduling (EDF):

  • Scheduling Tests:
    • u < 1 Test
  • Partitioning Procedures:
    • EDF Next Fit
    • EDF First Fit
    • EDF Best Fit (TbA)
  • Global Procedures:
    • Global EDF
    • EDF Utilization Separation
    • fpEDF

Comparison

Procedure Test Complexity N/N0
RMNF LL O(n) 2.67
RMFF LL O(nlogn) 2.23
RMBF LL O(nlogn) 2.23
RMFFDU Hyp. Bd. O(nlogn) 1.66
RMST Burch. O(nlogn) 1/(1-max ui)
EDFNF u<1 O(n) ?
EDFFF u<1 O(nlogn) 1.7
EDFBF u<1 O(nlogn) 1.7

Usage

  • Install: pip install git+https://github.com/j-schmied/python-rts.git
  • Usage:
    • rts.ipynb (Note: Notebook also uses pandas and plotly)
    • rts.py -> adapt task set on top and run script

Sources

  • Jane W. S. Liu. “Real-Time Systems“
  • Sudarshan K. Dhall und C. L. Liu. “On a Real-Time Scheduling Problem”
  • Ching-Chih Han und Hung-ying Tyan. “A Better Polynomial-Time Schedulability Test for Real-Time Fixed-Priority Scheduling Algorithms”
  • Almut Burchard u. a. “Assigning Real-Time Tasks to Homogeneous Multiprocessor Systems”
  • Tei-Wei Kuo und Aloysius K. Mok. “Load Adjustment in Adaptive Real-Time Systems”
  • C. L. Liu und James W. Layland. “Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment”

python-rts's People

Contributors

j-schmied avatar

Stargazers

 avatar  avatar

Watchers

 avatar

python-rts's Issues

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.