CISC 3595 Operating Systems Introduction
Tuesday / Friday 11:00-12:45am
CISC 3595 Operating Systems Introduction Tuesday / Friday - - PowerPoint PPT Presentation
CISC 3595 Operating Systems Introduction Tuesday / Friday 11:00-12:45am Outline What is operating system? Necessary background: computer hardware organization Basic Elements Processor: Instruction
CISC 3595 Operating Systems Introduction
Tuesday / Friday 11:00-12:45am
2
Cache Memory
3
4
6
was the first electronic general-purpose computer. It wasTuring-complete, digital,
7
8
9
10
11
Cache Memory
12
13
14
15
16
CPU registers: in-CPU memory, faster and smaller than main memory
17
Condition code bits (set by comparison instructions) CPU priority Mode (user, or kernel mode): OS kernel runs in kernel supervisor
Other …
18
19
20
21
22
23
Cache Memory
24
25
Amount, Speed, Expense
Faster access time, greater cost per bit
26ns: nanosecond (10-9 seconds), 1 billionth second
27
28
Faster storage (cache) checked first to determine if information is
If it is, information used directly from the cache (fast) If not, data copied to cache and used there
Exploit temporal locality and spatial locality
Data which is required soon is often close in memory to the current
Hardware: L1 cache Operating system: disk cache in memory Software/application level caching
Processor speed faster than memory access
29
30
Cache Memory
31
1.
2.
3.
4.
5.
6.
7.
32
Problem: most I/O devices are slower than CPU => inefficient for
33
34
35
36
37
38
39
Cache Memory
40
– Provide orderly, controlled,
For process management
For file management Directory and file system management …
Mount, ls,
Security and protection
Command: ps, top, kill,
netstat, ifconfig, …
42
43
After saving status of pending process (PC,
44
45
Cache Memory