KEMBAR78
CPU Scheduling in Operating Systems | PDF | Scheduling (Computing) | Process (Computing)
0% found this document useful (0 votes)
48 views3 pages

CPU Scheduling in Operating Systems

what is CPU Scheduling in Operating Systems

Uploaded by

Abu Sufian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

CPU Scheduling in Operating Systems

what is CPU Scheduling in Operating Systems

Uploaded by

Abu Sufian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CPU Scheduling in Operating Systems

Scheduling of processes/work is done to finish the work on time. CPU


Scheduling is a process that allows one process to use the CPU while
another process is delayed (in standby) due to unavailability of any
resources such as I / O etc, thus making full use of the CPU. The purpose of
CPU Scheduling is to make the system more efficient, faster, and fairer.

What is a Process?
In computing, a process is the instance of a computer program that is
being executed by one or many threads. It contains the program code and
its activity. Depending on the operating system (OS), a process may be
made up of multiple threads of execution that execute instructions
concurrently.
How is Process Memory Used For Efficient Operation?
The process memory is divided into four sections for efficient operation:
 The text category is composed of integrated program code, which is read
from fixed storage when the program is launched.
 The data class is made up of global and static variables, distributed and
executed before the main action.
 Heap is used for flexible, or dynamic memory allocation and is managed
by calls to new, delete, malloc, free, etc.
 The stack is used for local variables. The space in the stack is reserved
for local variables when it is announced.
What is Process Scheduling?
Process Scheduling is the process of the process manager handling the
removal of an active process from the CPU and selecting another process
based on a specific strategy.
Process Scheduling is an integral part of Multi-programming applications.
Such operating systems allow more than one process to be loaded into
usable memory at a time and the loaded shared CPU process uses
repetition time.
There are three types of process schedulers:
 Long term or Job Scheduler
 Short term or CPU Scheduler
 Medium-term Scheduler

Objectives of Process Scheduling Algorithm


 Utilization of CPU at maximum level. Keep CPU as busy as possible.
 Allocation of CPU should be fair.
 Throughput should be Maximum. i.e. Number of processes that
complete their execution per time unit should be maximized.
 Minimum turnaround time, i.e. time taken by a process to finish
execution should be the least.
 There should be a minimum waiting time and the process should not
starve in the ready queue.
 Minimum response time. It means that the time when a process
produces the first response should be as less as possible.

Terminologies Used in CPU Scheduling


 Arrival Time: Time at which the process arrives in the ready queue.
 Completion Time: Time at which process completes its execution.
 Burst Time: Time required by a process for CPU execution.
 Turn Around Time: Time Difference between completion time and arrival
time.
o Turn Around Time = Completion Time – Arrival Time
 Waiting Time(W.T): Time Difference between turn around time and burst
time.
o Waiting Time = Turn Around Time – Burst Time

What Are The Different Types of CPU Scheduling Algorithms?


There are mainly two types of scheduling methods:
 Preemptive Scheduling: Preemptive scheduling is used when a process
switches from running state to ready state or from the waiting state to the
ready state.
 Non-Preemptive Scheduling: Non-Preemptive scheduling is used when
a process terminates , or when a process switches from running state to
waiting state.

You might also like