



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture is part of lecture series on Information Technology course. This lecture includes: Process Management, Operations on Processes, Process States, Process Control Block, Process Scheduling Queues, Scheduling Criteria, Scheduling Algorithms, Shortest Job First, Round Robin, Priority Scheduling, Multilevel Feedback Queue
Typology: Slides
1 / 35
This page cannot be seen from the preview
Don't miss anything!




























^ Contains
information associated
with^ each
process ^ Process
State^ ‐
e.g.^ new, ready,^ running
etc. ^ Process
Number
ID ^ Program
Counter
‐ address
of^ next instruction
to^ be executed CPU^ registers
‐^ general purpose
registers,
stack pointer
etc.
Process
Control
Block
(Cont..)
^ CPU scheduling information
‐^ process
priority, pointer Memory
Management
information
base/limit information Accounting
information
‐^ time
limits,
process number I/O^ Status
information
‐^ list
of^ I/O
devices allocated
^ Long
‐term^ scheduler
(or^ job
scheduler)
^ selects
which processes
should
be^ brought
into^ the
ready^
queue. ^ invoked
very^ infrequently
(seconds,
minutes);
may^ be
slow. ^ controls
the^ degree
of^ multiprogramming
^ Short
term^
scheduler
(or^ CPU
scheduler)
^ selects
which
process
should
execute
next
and^ allocates
^ invoked
very^ frequently
(milliseconds)
must^ be
very^ fast ^ Medium
Term Scheduler ^ swaps
out^ process
temporarily
^ balances
load^ for
better
throughput
— It is define as the time spent by the process in the ready queue .waiting timeshould be small. Response time
— It is define as the time when the first response start coming. It should also beas small as possible.
system, ‐^ short
jobs^ are
made^ to
wait^ by
longer^
jobs^ but
the
overall^
treatment
of^ all^ processes
is^ fair.
‐a^ scheduler
executes
jobs^ in
the^ following
two
situations.^ ^ When
a^ process
switches
from^ running
state^ to
the
waiting
state. ^ When
a^ process
terminates.
^ Implementation:^ ^ As
each^ process
becomes
ready,
it^ joins
the
ready^ queue. When
the^ current
process
finishes
the^ oldest
process
is^ selected
next.
^ Characteristics:^ ^ Simple
to^ implement ^ Nonpreemptive
FCFS
^ EXAMPLE :
Process
Burst Time
P^
8
P^
4
P^
9
P^
5
0
8
12
21
26
Average
wait^ =(0+8+12+21)/
=^ 10.
P^
P^
P^
P