8/12/2019 Operating Systems Chapter-01.ppt
1/36
1
Introduction
Chapter 1
1.1 What is an operating system
1.2 History of operating systems
1.3 The operating system zoo
1.4 Computer hardware review1.5 Operating system concepts
1.6 System calls
1.7 Operating system structure
8/12/2019 Operating Systems Chapter-01.ppt
2/36
2
Introduction
A computer system consists of hardware
system programs
application programs
8/12/2019 Operating Systems Chapter-01.ppt
3/36
3
What is an Operating System
It is an extended machine
Hides the messy details which must be performed
Presents user with a virtual machine, easier to use
It is a resource manager
Each program gets time with the resource
Each program gets space on the resource
8/12/2019 Operating Systems Chapter-01.ppt
4/36
8/12/2019 Operating Systems Chapter-01.ppt
5/36
5
History of Operating Systems (2)
First generation 1945 - 1955
vacuum tubes, plug boards
Second generation 1955 - 1965 transistors, batch systems
Third generation 1965 1980
ICs and multiprogramming Fourth generation 1980 present
personal computers
8/12/2019 Operating Systems Chapter-01.ppt
6/36
6
History of Operating Systems (3)
Structure of a typical FMS job
2
nd
generation
8/12/2019 Operating Systems Chapter-01.ppt
7/367
History of Operating Systems (4)
Multiprogramming system
three jobs in memory
3
rd
generation
8/12/2019 Operating Systems Chapter-01.ppt
8/368
The Operating System Zoo
Mainframe operating systems
Server operating systems
Multiprocessor operating systems
Personal computer operating systems
Real-time operating systems
Embedded operating systems
Smart card operating systems
8/12/2019 Operating Systems Chapter-01.ppt
9/369
Computer Hardware Review (1)
Components of a simple personal computer
Monitor
Bus
8/12/2019 Operating Systems Chapter-01.ppt
10/3610
Computer Hardware Review (2)
(a) A three-stage pipeline
(b) A superscalar CPU
8/12/2019 Operating Systems Chapter-01.ppt
11/3611
Computer Hardware Review (3)
Typical memory hierarchy
numbers shown are rough approximations
8/12/2019 Operating Systems Chapter-01.ppt
12/3612
Computer Hardware Review (4)
Structure of a disk drive
8/12/2019 Operating Systems Chapter-01.ppt
13/3613
Computer Hardware Review (5)
One base-limit pair and two base-limit pairs
8/12/2019 Operating Systems Chapter-01.ppt
14/3614
Computer Hardware Review (6)
(a) Steps in starting an I/O device and getting interrupt
(b) How the CPU is interrupted
(a) (b)
8/12/2019 Operating Systems Chapter-01.ppt
15/3615
Computer Hardware Review (7)
Structure of a large Pentium system
8/12/2019 Operating Systems Chapter-01.ppt
16/36
16
Operating System Concepts (1)
A process tree A created two child processes, B and C
B created three child processes, D, E, and F
8/12/2019 Operating Systems Chapter-01.ppt
17/36
17
Operating System Concepts (2)
(a) A potential deadlock. (b) an actual deadlock.
8/12/2019 Operating Systems Chapter-01.ppt
18/36
18
Operating System Concepts (3)
File system for a university department
8/12/2019 Operating Systems Chapter-01.ppt
19/36
8/12/2019 Operating Systems Chapter-01.ppt
20/36
8/12/2019 Operating Systems Chapter-01.ppt
21/36
21
Steps in Making a System Call
There are 11 steps in making the system call
read (fd, buffer, nbytes)
8/12/2019 Operating Systems Chapter-01.ppt
22/36
22
Some System Calls For Process Management
8/12/2019 Operating Systems Chapter-01.ppt
23/36
23
Some System Calls For File Management
8/12/2019 Operating Systems Chapter-01.ppt
24/36
24
Some System Calls For Directory Management
8/12/2019 Operating Systems Chapter-01.ppt
25/36
25
Some System Calls For Miscellaneous Tasks
8/12/2019 Operating Systems Chapter-01.ppt
26/36
26
System Calls (1)
A stripped down shell:
while (TRUE) { /* repeat forever */
type_prompt( ); /* display prompt */
read_command (command, parameters) /* input from terminal */
if (fork() != 0) { /* fork off child process */
/* Parent code */
waitpid( -1, &status, 0); /* wait for child to exit */
} else {
/* Child code */
execve (command, parameters, 0); /* execute command */
}
}
8/12/2019 Operating Systems Chapter-01.ppt
27/36
27
System Calls (2)
Processes have three segments: text, data, stack
8/12/2019 Operating Systems Chapter-01.ppt
28/36
28
System Calls (3)
(a) Two directories before linking/usr/jim/memoto ast's directory
(b) The same directories after linking
8/12/2019 Operating Systems Chapter-01.ppt
29/36
29
System Calls (4)
(a) File system before the mount(b) File system after the mount
8/12/2019 Operating Systems Chapter-01.ppt
30/36
30
System Calls (5)
Some Win32 API calls
8/12/2019 Operating Systems Chapter-01.ppt
31/36
31
Operating System Structure (1)
Simple structuring model for a monolithic system
8/12/2019 Operating Systems Chapter-01.ppt
32/36
32
Operating System Structure (2)
Structure of the THE operating system
8/12/2019 Operating Systems Chapter-01.ppt
33/36
33
Operating System Structure (3)
Structure of VM/370 with CMS
8/12/2019 Operating Systems Chapter-01.ppt
34/36
34
Operating System Structure (4)
The client-server model
8/12/2019 Operating Systems Chapter-01.ppt
35/36
8/12/2019 Operating Systems Chapter-01.ppt
36/36
Metric Units
The metric prefixes