Process Control Block With Cpu Scheduling Algorithm
Process Control Block With Cpu Scheduling Algorithm
CHAPTER 1
SYNOPSIS
Project Title
None
Mr.Tannu R.R
CHAPTER 2
ABSTRACT
CHAPTER 3
Samarth Polytechnic, belhe 2|Page
cpu scheduling algorithm
INTRODUCTION
When the CPU is free, and its resources are available, then the
CPU must select a process from the ready queue and allocate resources for its
execution. Selection is performed with the help of CPU schedulers where the CPU
scheduler selects a process from the list of available processes (processes which are
present in the ready queue).
CHAPTER 4
Preemptive Scheduling:
In Preemptive Scheduling, the tasks are mostly assigned with their priorities.
Sometimes it is important to run a task with a higher priority before another lower
priority task, even if the lower priority task is still running. The lower priority task
holds for some time and resumes when the higher priority task finishes its execution.
CHAPTER 5
IMPORTANT CPU SCHEDULING TERMINOLOGIES
Process: It is the reference that is used for both job and user.
CHAPTER 6
CPU SCHEDULING CRITERIA
Maximize:
CPU utilization: CPU utilization is the main task in which the operating system
needs to make sure that CPU remains as busy as possible. It can range from 0 to 100
percent. However, for the RTOS, it can be range from 40 percent for low-level and 90
percent for the high-level system.
Throughput: The number of processes that finish their execution per unit time is
known Throughput. So, when the CPU is busy executing the process, at that time,
work is being done, and the work completed per unit time is called Throughput.
Minimize:
Waiting time: Waiting time is an amount that specific process needs to wait in the
ready queue.
Response time: It is an amount to time in which the request was submitted until the
first response is produced.
CHAPTER 6
TYPES OF CPU SCHEDULING ALGORITHM
As the process enters the ready queue, its PCB (Process Control Block) is
linked with the tail of the queue. So, when CPU becomes free, it should be assigned to
the process at the beginning of the queue.
Priority scheduling also helps OS to involve priority assignments. The processes with
higher priority should be carried out first, whereas jobs with equal priorities are
carried out on a round-robin or FCFS basis. Priority can be decided based on memory
requirements, time requirements, etc.
5.Round-Robin Scheduling
Round robin is the oldest, simplest scheduling algorithm. The name of this algorithm
comes from the round-robin principle, where each person gets an equal share of
something in turn. It is mostly used for scheduling algorithms in multitasking. This
algorithm method helps for starvation free execution of processes.