kj-grogu / OS_Simulator_Scheduling_Algorithms

Desktop Application to simulate visualization of various scheduling algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS_Simulator_Scheduling_Algorithms

Install PyCharm -

https://www.jetbrains.com/pycharm/download/#section=windows

Open the project in Pycharm -

(choose existing repo location or create an empty one and bring in the files)

Install required modules -

This will be done by pycharm, goto the osm_1.py file, goto top where imports are defined, there would be an error on modules that require installation, click and install them. Untill there are no more reds. You can also try insstalling modules from terminal inside PyCharm

Running -

Open Terminal in Pycharm, its at the bottom

Run command -

python3 .\osm_1.py (for windows)

OSM in actions

FCFS

FCFS

Priority

Priority

RoundRobin

RoundRobin

Image00

Image01

Main Files -

osm_1.py (UI Component) myos package - Has different schedulers

myos\FirstComeFirstServe.py - FirstComeFirstServe scheduler

myos\RoundRobin.py - RoundRobin scheduler

myos\ShortestJobFirst.py - ShortestJobFirst scheduler

myos\ShortestRemainingTimeFirst.py - ShortestRemainingTimeFirst scheduler





Tools Used

PyQtDesigner - https://pythonbasics.org/qt-designer-python/

Generate .ui file and compile to python file using below command

PyQt Complilation C:\Users<user>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\pyuic5.exe -x first.ui -o first.py

About

Desktop Application to simulate visualization of various scheduling algorithms


Languages

Language:Python 100.0%