Académique Documents
Professionnel Documents
Culture Documents
1.1 What is an operating system 1.2 History of operating systems 1.3 Computer hardware review 1.4 The operating system zoo 1.5 Operating system concepts 1.6 System calls 1.7 Operating System Structure
1
Managing all these components requires a layer of software the operating system The general role of OS: Provide a set of services to system users
3
Early batch system bring cards to 1401 read cards to tape put tape on 7094 which does computing put tape on 1401 which prints output
11
Multiprogramming system
three jobs in memory 3rd generation
14
15
17
18
Bus
Components of a simple personal computer The four main structural elements of a computer system are: Processor, Main Memory, I/O Modules, System Bus
19
21
(a) A three-stage pipeline CPU: have separate fetch, decode and execute units (b) A superscalar CPU: have multiple execution units
22
25
27
28
29
30
31
32
CMOS:
Real time clock Configuration Information
33
37
38
I/O Devices generate an external interrupt (interrupt signal): when is needed. Example: an input/output operation is completed
39
40
(a)
(b)
(a) Steps in starting an I/O device and getting interrupt (b) How the CPU is interrupted
42
44
45
USB Universal Serial BUS SCSI Small Computer System Interface IDE Integrated Drive Electronic
46
47
48
time-sharing, multitasking
Application: High-End Web Server, Servers for Business-To- Business transactions Example: OS/390
50
52
53
54
55
Example: e-Cos
57
58
59
OS Components
Process Management Main Memory Management (Address Spaces) File management I/O Management Protection and Security Operating System Services (The Shell)
60
61
62
63
64
65
66
67
Communications Processes may exchange information, on the same computer or between computers over a network Error detection OS needs to be constantly aware of possible errors .
68
69
System Calls
Making System Calls Major POSIX System Calls (Lab) Examples of System Calls (Lab)
70
System Calls
Making System Calls (1)
System Calls
System Calls and Trap (2)
A system call
Allows a user process to assess and execute operating system functions inside the kernel Allows user programs to invoke operating system services
A trap instruction
switches the execution mode of a CPU from the user
mode to the kernel mode is caused by a user program to invoke functions in the OS kernel
72
System Calls
Making System Calls (3)
C program invoking printf() library call, which calls write() system call A procedure library is provided to make system calls from some programming languages
73
System Calls
Examples
The Win32 API calls that roughly correspond to the UNIX calls
74
75
Monolithic
MS-DOS written to provide the most functionality in the least space:
not divided into modules; Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated
79
82
83
processes
programming interface
kernel hardware
Non-virtual machine system model
kernel VM1
87
88
- (a) A type 1 hypervisor. (b) A type 2 hypervisor. - VMware Workstation is a type 2 hypervisor
90
91