CIS 630 OPERATING SYSTEMS - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

CIS 630 OPERATING SYSTEMS

Description:

MLF: p = n - log2 (a/T 1) 1. RM: p = -d; EDF: p = -(d (r % d)); 11/8/09 ... MLF. Solve for i: a/T 2i 1 1. a/T 1 2i 1. log2 (a/T 1) i 1 ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 13
Provided by: kwes5
Category:
Tags: cis | operating | systems | mlf

less

Transcript and Presenter's Notes

Title: CIS 630 OPERATING SYSTEMS


1
CIS 630 OPERATING SYSTEMS
CHAPTER 5 Morty Kwestel 2003
2
Chapter 5
  • Scheduling
  • Priority Based
  • Modes
  • Functions

3
Chapter 5
  • Scheduling
  • Algorithms
  • Distributed
  • Priority Inversion

4
FIGURE 5-1
Shared scheduler
Autonomous scheduler
5
Scheduler
int P Priority Scheduler() while(CPU
! NULL) find highest P(ready_que) and
Get(proc) find free CPU if (CPU !
NULL) allocate_cpu (CPU, proc)  
while(P(proc1) gt P(proc2)) find
highest P(ready_que) and Get(proc1) find
lowest P(running) and Get(proc2) if
(P(proc1 gt proc2) preempt(proc1, proc2)

6
Scheduling
P priority r time //time in system since
its arrival. t total service time a attained
service time q time quantum (TQ) e External
Priority
7
Scheduling Functions
FIFO P r SJF P -t SRT P -(t
a) RR   p 0 ML p e MLF p n -
?log2 (a/T 1)? 1 RM p -d EDF p -(d
(r d))
8
FIGURE 5-3
9
MLF
n Priority level T time constant TQ n
i P 4 tp-0 a lt 20 T 1 T P
3 tp-1 a lt 21 T 3 T P 2 tp-2 a lt
22 T 7 T P 1 tp-3 a lt 23 T 15
T   Translates to a lt (2i 1 1) T
10
MLF
Solve for i a/T lt 2i 1 1 a/T 1 lt 2i
1 log2 (a/T 1) lt i 1 i ?log2 (a/T 1)? -
1 P n i P n ( ?log2 (a/T 1)? 1)
11
FIGURE 5-10
Priority inversion
12
FIGURE 5-11
Priority Inheritance
Write a Comment
User Comments (0)
About PowerShow.com