This video demonstrates a Python-based terminal application that visually represents four CPU scheduling algorithms (First Come First Serve, Shortest Job First, Shortest Remaining Time First, and Round Robin) using color-coded Gantt charts, making it easier to understand and compare how each algorithm schedules tasks over time and their respective performance metrics like average waiting time and turnaround time.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
CPU Scheduling Visualizer || CSE323 ProjectAdded:
Hello everyone, this is Aisha and today I will present a Python based terminal application that demonstrate how CPU scheduling in algorithms work.
So my project implements four L key algorithms which are uh first come first serve shortage of first shortest remaining time and round dropping. So now what makes it interesting is that is it it visually represent process execution using a color-coded G chart in the terminal making it easier to understand and compare how each algorithm schedules taskes over time. So these are my Python file which I have used in my projects. So let's run the project.
Okay, this is the user interface. Uh here I use flat for this UI. And to do any algorithm firstly we have to add process. Now I'm adding the process.
Okay. So I have added all the process and uh firstly the first FCFS which is first come first ser processor um we know the processes are executed in the order they arrive uh let's run the they arrive the first process gets the CPU first and runs until it finishes and we can see that it's working this way and uh this is the matrix of my FCFS um which shows average waiting time is 3.00 average turn is 5.25 25. Um, and now let's go to the SJF and we know uh SJF is basically the process with the shortest execution execution time is selected next which helps reduce overall waiting time and we can see um and this is the matrix of SJF. Uh the average waiting time is 2 waiting is 2.00 average turn error is 4.25 for the SJF and SRTF. Let's run SRTF. And this is the GAN chart of SRTF.
Um we can say the this is this this is the primitive version of SJF. The CPU always runs the process with the shortest remaining time. If a proc um if a new process arrives with a shorter remaining time, the current process is paused and the and the new one is executed time first. And we can see that um the mat um and this is the matrix and its average time is waiting is also 2.00 and average is 4.2. 25. Uh let's run round robbing and we set the quantum which is two and round robbing each process gets a fixed time like we set the quantum two after it's done it goes to the back of the qu and if it's not finished ensuring fair CPU in sharing and we can see uh how it's work and this is the matrix of round robin the average waiting is showing 3.50 5 standard only is 5.75 and lastly the system monitor it shows uh the programs which are running in my laptop.
Yeah, this was it and this was my project. Thank you everyone.
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 viewsβ’2026-05-28
How agent o11y differs from traditional o11y β Phil Hetzel, Braintrust
aiDotEngineer
450 viewsβ’2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanationπ―β
LearnwithSahera
1K viewsβ’2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 viewsβ’2026-05-29
Search Algorithms Explained in 60 Seconds! π€π¨
samarthtuliofficial
218 viewsβ’2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 viewsβ’2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 viewsβ’2026-05-29
So What's Odin Lang Even Good For
TechOverTea
131 viewsβ’2026-06-01











