Arash Taher

A simple scheduler in Python

Here’s a simple scheduler simulator in Python that you can download from here. You give it a list of processes and scheduling algorithm you want to be used for scheduling and as result you get a simple output like this which shows you the sequence of the processes running in intervals:

System starts up
002.000: Algorithm SPN is in use
004.000: Process 001 Created
004.000: Process 001 -> readyQ
004.000: Process 001 -> CPU
006.100: Algorithm MLFQ is in use
007.300: Process 002 -> swapped out

It’s all about perfect timing

This program is interesting in several aspects:

Unfortunately, because of lack of enough time for this project, it’s not as beautiful as I liked, but as a proverb says, “Something is (most of the times) better than nothing.”

#Concurrency #Os #Programming #Python