2 - Components, Functionalities & Types of OS
2 - Components, Functionalities & Types of OS
Content
Quick Recap
Functions of OS
Components of OS
Types of OS
Introduction to Operating System (Recap)
OS is a resource allocator
◦ Manages all resources
◦ Decides between conflicting requests for efficient and fair resource use
OS is a control program
◦ Controls execution of programs to prevent errors and improper use of the
computer
Motivation of studying OS
Computer-system operation
One or more CPUs, device controllers connect through common bus
providing access to shared memory
Concurrent execution of CPUs and devices competing for memory cycles
Functions of operating system
Process (a running program) Management:
Involves handling the creation, scheduling, and termination of
processes, which are executing programs.
Process abstraction: Each process has the illusion of having the
complete CPU, i.e., OS virtualizes CPU
Enables coordination between processes
Memory Management:
Manages allocation and deallocation of physical and virtual memory
spaces to various programs.
OS manages the memory of the process: code, data, stack, heap etc.
Functions of operating system (Cont.)
File Management:
Manages files on storage devices, including their information,
naming, permissions, and hierarchy.
Persistent data organized as a filesystem on disk
Functions of operating system (Cont.)
Network Management:
Manages network protocols and functions, enabling the OS to
establish network connections and transfer data.
2. Process Management
Process Scheduler: Determines the execution of processes.
Process Control Block (PCB): Contains process details such as process ID,
priority, status, etc.
Concurrency Control: Manages simultaneous execution.
3. Memory Management
Physical Memory Management: Manages RAM allocation.
Virtual Memory Management: Simulates additional memory using disk space.
Memory Allocation: Assigns memory to different processes.
Components of operating system (Cont.)
5. Device Management
Device Drivers: Interface between the hardware and the operating system.
I/O Controllers: Manage data transfer to and from peripheral devices.
7. User Interface
Command Line Interface (CLI): Text-based user interaction.
Graphical User Interface (GUI): Visual, user-friendly interaction
with the OS.
8. Networking
Network Protocols: Rules for communication between devices on a
network.
Network Interface: Manages connection between the computer and
the network.
Types of operating system
1. Batch OS
2. Multiprogramming OS
3. Multitasking/Time sharing OS
4. Multiprocessing OS
5. Real Time OS
6. Distributed OS
7. Clustered OS
8. Embedded OS
Batch OS
Only one job is given input at a time as there was no memory; computer
will take the input then process it and then generate output.
Common input/output device were punch card or tape drives. So, these
devices were very slow, and processor remain ideal most of the time.
Batch OS
To speed up the processing job with similar types (for e.g. FORTRAN
jobs, COBOL jobs etc.) were batched together and run through the
processor as a group (batch).