1
1
Computer System Overview
Chapter 1
2
Operating System
- Exploits the hardware resources of one
- r more processors
- Provides a set of services to system users
- Manages secondary memory and I/O
Computer System Overview Chapter 1 1 Operating System Exploits - - PDF document
Computer System Overview Chapter 1 1 Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users Manages secondary memory and I/O devices 2 1 Basic Elements
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1940: Acc <- Mem [940] 5941: Acc <- Acc + Mem [941] 2941: Mem [941] <- Acc
17
18
19
20
Program waits “busy waits” for Data to transfer (between 4 & 5) 1 – 4 –*– 5 – 2 – 4 –*– 5 – 3
21
Program execution and data transfer overlap at 2a and 3a 1 – 4 – 2a – 5 – 2b – 4 – 3a – 5 – 3b
22
Program execution blocks at 2nd Write because I/O controller is busy
Program execution overlaps with data transfer at 2 and 3
23
24
25
26
27
Concurrency: Data transfer and Program execution Program “busy wait”
28
Assumption: Cannot issue a 2nd “write” until 1st “write” finishes Data transfer time Pgm segment 2 completes before Data transfer completes Data transfer time Pgm segment 3 completes before Data transfer completes
29
30
31
32
33
34
35
36
37
On CPU On Memory Unit
38
39
40
41
42
43
45
46
47
48
49
50
51
52