What is an Operating System
What is an Operating System
An Operating System (OS) is a program that acts as a bridge between the user and the computer
hardware. It manages hardware, runs applications, and ensures the computer functions smoothly.
How an OS Works:
Why is an OS Important?
An Operating System (OS) provides various services to help users and ensure the computer
works efficiently. These services can be grouped into two main categories:
Program Execution
I/O Operations
Programs often need input (keyboard, mouse) and output (screen, printer).
The OS manages communication between programs and hardware.
Communication
Error Detection
Resource Allocation
The OS decides how to share resources (CPU, memory, disk space) among programs.
Example: Running multiple apps at once without slowing down the system.
Accounting
Tracks resource usage (e.g., how much memory or CPU a program uses).
Useful for performance monitoring and billing in cloud computing.
System Calls
System Programs
1. Simple Structure
Example: MS-DOS
No clear separation between different parts.
Fast but harder to maintain and expand.
2. Layered Structure
3. Microkernel
4. Modular Approach
OS is built from independent modules.
Easier to update and modify.