Skip to content

amirhnajafiz-university/S8ER01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c246b12 · May 10, 2023

History

86 Commits
May 10, 2023
May 10, 2023
May 10, 2023
May 10, 2023
May 10, 2023
May 10, 2023
May 10, 2023
May 10, 2023

Repository files navigation

Minimal RTOS

This is a minimal RTOS based on Python. It is a simple implementation of a EDF, RM, DM scheduler. It is a good starting point for learning how to implement a RTOS.

Execute

usage

usage: main.py [-h] [-m MODE] [-p PREEMPTIVE] [-f FILE] [-d DURATION]

mode

  • RM
  • DM
  • EDF

example

python3 main.py --mode RM --file tasks_interrupts.csv --duration 100 --preemptive True

Tasks

You can create your own tasks in csv file with following rows in order:

priority,name,state,type,act_time,period,wcet,deadline