Professional Documents
Culture Documents
Chapter 1
Chapter 1
Objectives
1.2
What is an Operating System?
1.3
Operating Systems
1.4
Android
1.5
Computer System Structure
1.6
Four Components of a Computer System
1.7
Operating System Definition
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and fair
resource use.
OS control program
Controls the execution of programs to prevent errors and
improper use of the computer.
“The program running at all times on the computer” is the
kernel.
Everything else is either
a system program (ships with the operating system) , or
an application program.
1.8
Components of operating system
Kernel
Shell
Other program
Or
Process management, memory management, file
management, storage management, security
management components, etc.
1.9
Kernel
1.10
Shell
the shell.
the command and calls the program that you want and pass the
request to kernel.
1.13
Computer Startup
1.14
Computer-System Architecture
1.15
What Operating Systems Do
1.16
Operating-System Operations
Interrupt driven (hardware and software)
Hardware interrupt by one of the devices
Software interrupt (exception or trap):
Software error (e.g., division by zero)
Request for operating system service
1.17
Operating-System Operations (cont.)
1.18
Transition from User to Kernel Mode
Timer to prevent infinite loop / process hogging resources
Timer is set to interrupt the computer after some time period
Keep a counter that is decremented by the physical clock.
Operating system set the counter (privileged instruction)
When counter zero generate an interrupt
Set up before scheduling process to regain control or terminate
program that exceeds allotted time
1.19
Types of Operating System
1.20
Types of OS
serial processing OS
Batch OS
Multi-programmed OS
Time sharing OS
Multiprocessors OS
Real time OS
Distributed OS
1.21
1.22
1.23
1.24
1.25
1.26
1.27
1.28
1.29
Cont…
1.30
1.31
1.32
1.33
Cont…
1.34
Cont…
Common multiple-processor systems :
1.35
Characteristic of Modern OS
1.36