Make A Comparative Chart To Calculate Average Waiting Time of Different Scheduling Algorithms
Make A Comparative Chart To Calculate Average Waiting Time of Different Scheduling Algorithms
MICRO-PROJECT
OF
OPERATING SYSTEM
Submitted by
Guided by
CERTIFICATE
2024-2025
This is Certify that the Entitled
Guided By
1) Shiban Nandi
2) Bhavik Jangade
3) Amarpreet Nagi
4) Swapneel Verma
ACKNOWLEDGEMENT
We hereby express our deep gratitude to our H.O.D. and Hon’ble Principal for
his/her cooperation and help and also the other staff -members of the
department.
We also thank to library for making us available necessary books for reference.
I would like to place on record my sincere thanks to all persons directly or
indirectly helped using completion of this work.
PART A
S.
No.
Name of Resource / Material Specification Quantity Remark
Computer(Pentium
1 Hardware: Computer System 4th gen), RAM 1 ---------
4GB,HDD 500GB
2 Operating System Windows /LINUX 1 ----------
PART B
Introduction:
CPU scheduling is a process that allows multiple processes to share the Central
Processing Unit (CPU) time, enabling efficient use of system resources. It's a
crucial feature of operating systems that governs the allocation of processor
time among various tasks running on a computer.
Priority Scheduling:
Processes are scheduled based on priority levels; the highest priority
process is executed first.
Can lead to starvation of lower-priority processes if high-priority tasks
continuously arrive, though variants like aging can mitigate this issue.
Multilevel Queue Scheduling:
Divides the ready queue into several separate queues, each with its own
scheduling algorithm.
Different types of processes can be managed more effectively, but it can
be complex to implement and balance between queues.
Example of All scheduling algorithms:
Gantt chart:
P1 P2 P3 P4
0 8 12 22 24
Waiting Time:
P1: 0-0=0
P2: 8-1=7
P3: 12-2=10
P4: 22-3=19
Average wating time: (0+7+10+19)/4 = 36/4 = 9
Gantt chart:
P4 P2 P1 P3
0 2 6 14 24
Waiting Time
P1: 6-0=6
P2: 2-1=1
P3: 14-2=12
P4: 0-3= (-3)
Gantt chart
P1 P3 P4 P2
0 8 18 20 24
Waiting time
P1:0-0=0
P2:20-1=19
P3:8-2=6
P4:18-3=15
Gantt Chart:
P1 P2 P3 P4 P1 P3 P3
0 4 12 16 18 22 26 28
Waiting time
P1:0+18=18
P2: 4
P3:12+22+26=60
P4: 16
1). https://www.geeksforgeeks.org/cpu-scheduling-in-operating-
systems/
2) https://www.baeldung.com/cs/cpu-scheduling-algorithms
3) https://www.tutorialspoint.com/operating_system/index.htm
4). https://www.studytonight.com/lostnfound.php