Professional Documents
Culture Documents
System Programs
HARDWARE
(Contd…)
Structure of Operating System
(Contd…):
◼ The structure of OS consists of 4 layers:
1. Hardware
Hardware consists of CPU, Main memory, I/O
Devices, etc.
2. Software (OS)
Software includes process management
routines, memory management routines, I/O
control routines, file management routines.
(Contd…)
Structure of Operating System
(Contd…):
3. System programs
This layer consists of compilers, Assemblers,
linker etc.
4. Application programs
This is dependent on user’s need.
E.g. Railway reservation system, Bank
database management etc.,
What is a Kernel?
User
program
area
Batch Processing (Contd…):
Advantages:
◼ Transfers much of the work of the operator to the computer
◼ Increased performance, a job starts as soon as the previous
one finishes
◼ Simple scheduling
◼ Does not use any critical device management.
Disadvantages:
◼ CPU is often idle due to slow i/o devices
◼ Turn around time can be large from user view,
◼ Difficult to debug
◼ A job could corrupt the monitors, affecting all jobs
◼ A job may enter an infinite loop
Buffering
1. Program execution
2. I/O operations
3. File System Manipulation
4. Communication
5. Error detection
6. Resource allocation
7. Accounting
8. protection
Program Execution
◼ OS should load a program into memory and run it.
◼ The program must be able to end its execution, either
normally or abnormally.
I/O Operations