Operating Systems - PowerPoint PPT Presentation

1 / 70
About This Presentation
Title:

Operating Systems

Description:

assume 50 tracks on disc (0..49) assume 1ms to move R/W head 1 track ... dis: may miss a 'close' track if moving in other direction. CSC 350 - Dr. Gary Locklair ... – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 71
Provided by: garylo1
Learn more at: http://www.cs.cuw.edu
Category:

less

Transcript and Presenter's Notes

Title: Operating Systems


1
Operating Systems
reportspost topic on WebCT
Sassn 5PDL 10 Novproject 1 Dec
2
Operating Systems
wassn7 assigned
due next time
3
Operating Systems
4
Device Management
II. Device Management
D. DASD example 4. OS seek stategies
5
Device Management
a. FCFS
tracks are serviced in the order they arrived
6
Device Management
data organization
assume 50 tracks on disc (0..49) assume 1ms to
move R/W head 1 track
7
Device Management
track 0 at outside track max at inside
8
Device Management
R/W head at track 20
list of pending track requests 2, 26, 19, 43
9
Device Management
at track 20
10
Device Management
move to track 2
11
Device Management
move to track 26
12
Device Management
move to track 19
13
Device Management
move to track 43
14
Device Management
how much time?
20 2 26 19 43
20-2 26-2 26-19 43-19
18 24 7 24
73 msec
15
Device Management
animation
link
16
Device Management
b. SSTF
Shortest Seek Time First track closest to current
request is serviced next
17
Device Management
adv short seek times
dis favors closer tracks may indefinitely
postpone far tracks
18
Device Management
SSTF will reorder pending requests
eg, 2, 26, 19, 43 becomes 19, 26, 43, 2
19
Device Management
at track 20
20
Device Management
move to track 19
21
Device Management
move to track 26
22
Device Management
move to track 43
23
Device Management
move to track 2
24
Device Management
how much time?
20 19 26 43
2
20-19 26-19 43-26 43-2
1 7 17 41
66 msec
25
Device Management
c. SCAN
continue R/W head travel in one direction
satisfying requests direction bit
26
Device Management
SCAN moves all the way across disc surface
eg, from lower (outer) tracks to higher
(inner)(track 0 is outermost)
27
Device Management
SCAN analogy
wiper blade
28
Device Management
adv no starvation
dis may miss a close track if moving in other
direction
29
Device Management
SCAN will reorder pending requests
eg, 2, 26, 19, 43 in becomes 26, 43, 49,
19, 2
30
Device Management
at track 20
31
Device Management
move to track 26
32
Device Management
move to track 43
33
Device Management
move to track 49
34
Device Management
move to track 19
35
Device Management
move to track 2
36
Device Management
how much time?
2026 43 49 19
2
26-20 43-26 49-43 49-19 19-2
6 17 6 30
17
76 msec
37
Device Management
d. LOOK
variation of SCAN R/W head doesnt move to
extreme edges of disc if no requests
38
Device Management
at track 20
39
Device Management
move to track 26
40
Device Management
move to track 43
41
Device Management
move to track 19
42
Device Management
move to track 2
43
Device Management
how much time?
20 26 43 19 2
26-20 43-26 43-19 19-2
6 17 24 17
64 msec
44
Device Management
e. C-SCAN
circular SCAN R/W head moves from outer to inner
track
45
Device Management
when inner track is reached
quickly repositions head (no reading) back to
outer track begins a new sweep
46
Device Management
CSCAN analogy
squeegee
47
Device Management
not even close
to hernia movers
48
Device Management
C-SCAN will reorder pending requests
eg, 2, 26, 19, 43 in becomes 26, 43, 2,
19
49
Device Management
at track 20
50
Device Management
move to track 26
51
Device Management
move to track 43
52
Device Management
move to track 49
53
Device Management
sweep to track 0
54
Device Management
move to track 2
55
Device Management
move to track 19
56
Device Management
how much time?
20 26 43 2
19
26-2043-2649-43502-019-2
6 17 6 50 2 17
98 msec
57
Device Management
in real systems, the pending list is not static
new requests are entered all the time
58
Operating Systems
59
Device Management
exercise
head is over track 20 (of 50 0..49) in these
requests are pending 5, 25, 17, 30
60
Device Management
exercise compute times for FCFS, SSTF and SCAN
61
Operating Systems
62
Device Management
E. Device Management Functions
1. Checking Device Status
63
Device Management
a. Polling CPU checks if a flag is set
b. Interrupt H/W signal to CPU indicating
status
64
Device Management
2. Enforce Access Policies
3. Allocating Devices to Processes
65
Device Management
4. Deallocating Devices
a. I/O complete (temporary) b. Job complete
(permanent)
66
Device Management
5. Device Communication
a. DMA allows control unit to access memory
directly without CPU utilization or involvement
67
Device Management
b. buffers synchronize speed of I/O and CPU
68
Device Management
6. Device Types
a. dedicated b. shared c. virtual
69
Device Management
F. RAID
purpose adaptec info
70
Device Management
Write a Comment
User Comments (0)
About PowerShow.com