CS604ppt Vuanswer - Com 1
CS604ppt Vuanswer - Com 1
I/O Burst
One unit
Monitor
Trap
Service
Code
…
students
… courses
pid = 1234
pid = 0
exec
ls
ls
Consumer
read()
2
number of bytes read (zero indicates end of file) and advances the file position pointer by
this number.
Figure 9.1 Pipes on a UNIX/Linux system
FIFOs on a UNIX/Linux system
Descriptor Table
parent child
...
Display
pipe
Screen
server Send reply
send reply
wc -l
sort
Thread
Process
2
60
60 60
75 30 60
67
8
63
76
16
68
B
Average Queue
Time
W
P1
P1
Pi
Logical
Physical
address
+
address
Partition 2
200 K
Page
… …
4
.
3
10
14
table d’
index page
d
12
32-bit Offset
1
Source
String
1
2
4
5
7
8
Poi
F1
courses
programs
Descriptor Table File
Data
blocks
…
…
0 12 2
0 ⇒ block[i] is free
1 ⇒ block[i] is occupied
= 4 KB = 212 bytes
= 40 GB = 40 * 230
= 40 * 230/212 = 40
directories, and keeps track