Process Management - Information Technology - Lecture Slides, Slides of Information Technology

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

2012/2013

Uploaded on 12/31/2013

mandhata
mandhata 🇮🇳

4.5

(13)

68 documents

1 / 35

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Topic:ProcessManagement
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Process Management - Information Technology - Lecture Slides and more Slides Information Technology in PDF only on Docsity!

Topic

:^ Process

Management

Index

Process

Concept

Process

states

Process

Control

Block

Processes

Scheduling

Schedulers Scheduling

Algorithms

Operations

on^ Processes

Process

Creation

Process

Termination

Process

States

^ Contains

information associated

with^ each

process ^ Process

State^ ‐

e.g.^ new, ready,^ running

etc. ^ Process

Number

  • Process

ID ^ Program

Counter

‐ address

of^ next instruction

to^ be executed  CPU^ registers

‐^ general purpose

registers,

stack pointer

etc.

Process

Control

Block

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

Schedulers

^ 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

CPU.

^ invoked

very^ frequently

(milliseconds)

must^ be

very^ fast ^ Medium

Term Scheduler ^ swaps

out^ process

temporarily

^ balances

load^ for

better

throughput

Schedulers

(Cont..)

Scheduling Criteria(Cont..)  Waiting time

— 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.

Scheduling Criteria(Cont..)^ ^ Max

CPU^ utilization

^ Max

throughput

^ Min^

turnaround

time

^ Min^

waiting

time

^ Min^

Response

time

Types

of^ CPU

Scheduling

(cont..)

^ A scheduling discipline is

non‐

preemptive

if, once a process has been given the CPU, theCPU cannot be taken away from that process.  In^ nonpreemptive

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.

Types

of^ CPU

Scheduling

(cont..)

^ A^ scheduling

discipline

is^ preemptive

if,

once^ a

process

has^ been

given

the^ CPU

can

taken^

away.

FCFS

(First

Come

First

Serve

^ 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