OSY renaldo
OSY renaldo
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
• Introduction:
The waiting time of a process in a scheduling algorithm refers to the time it spends
waiting in the ready queue before being executed by the CPU. Different
scheduling algorithms manage process execution in unique ways, resulting in
varying waiting times. Here's a brief overview of the waiting times associated
with common scheduling algorithms:
• First-Come-First-Served (FCFS): Waiting time is directly proportional
to the burst time of the previous processes.
• Shortest Job First (SJF): Waiting time is minimized for shorter processes,
but longer processes may experience longer waiting times.
• Priority Scheduling: Waiting time is influenced by the priority of the
process, with higher-priority processes experiencing shorter waiting times.
• Round Robin (RR): Waiting time is relatively consistent, as each process
receives a fixed time slice (time quantum).
• Multilevel Feedback Queue (MFQ): Waiting time varies depending on
the queue and time quantum assigned to each process.
Understanding the waiting times of different scheduling algorithms is crucial for
evaluating their performance and selecting the most suitable algorithm for a
specific system or application.
By creating a comparative chart, one would analyze the average waiting time
produced by each algorithm across various scenarios, taking into account factors
like the number of processes, their burst times, and arrival patterns. This analysis
would reveal the strengths and weaknesses of each algorithm in terms of
efficiency and fairness, providing a clear visual representation of their
performance.
• What is CPU Scheduling?
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.
• 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
• 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