Types of Operating Systems
Operating systems can be classified based on how they process tasks, how many users they support, how many programs they run, and the type of devices they control.
The major types are:
- Batch Operating System
- Multiprogramming Operating System
- Multitasking Operating System
- Time-Sharing Operating System
- Multiprocessing Operating System
- Multi-User Operating System
- Distributed Operating System
- Network Operating System
- Real-Time Operating System
- Embedded Operating System
- Mobile Operating System
1. Batch Operating System
A Batch Operating System executes jobs in groups or batches without requiring continuous interaction from the user.
The user submits jobs, and the OS processes them one after another.
Example
Job 1 → Job 2 → Job 3 → Job 4 ↓ Processing
For example, suppose a company has thousands of salary calculations.
Instead of processing each employee interactively:
Employee 1 Employee 2 Employee 3 ... Employee 10000
The jobs can be collected and processed as a batch.
Characteristics
- Jobs are collected together.
- Jobs are executed sequentially.
- Little or no user interaction during execution.
- Suitable for repetitive tasks.
Advantages
- Efficient for large numbers of similar jobs.
- Reduces manual intervention.
- Good for repetitive processing.
Disadvantages
- No immediate response.
- Debugging can be difficult.
- A job may have to wait for previous jobs.
2. Multiprogramming Operating System
A multiprogramming OS keeps multiple programs in memory at the same time.
The CPU switches between programs when one program is waiting for an I/O operation.
For example:
RAM +----------------+ | Program A | | Program B | | Program C | | Program D | +----------------+
Suppose Program A is waiting for disk I/O:
Program A → Waiting for I/O ↓ CPU → Program B ↓ CPU → Program C
Therefore, CPU utilization increases.
Main Goal
Keep the CPU busy as much as possible.
Example
Traditional mainframe systems used multiprogramming extensively.
3. Multitasking Operating System
A multitasking OS allows multiple tasks or applications to appear to run simultaneously.
For example:
Chrome VS Code Music Player Terminal File Manager
You can switch between them quickly.
The CPU actually executes instructions for processes over small time intervals.
CPU ↓ Task A ↓ Task B ↓ Task C ↓ Task A ↓ Task D
Modern operating systems such as Windows, Linux, and macOS support multitasking.
Types of Multitasking
Preemptive Multitasking
The OS can interrupt a running process and give CPU time to another process.
Modern general-purpose operating systems mainly use this approach.
Cooperative Multitasking
A running program voluntarily gives up CPU control.
This can be less reliable because a badly behaved program may prevent other programs from running.
4. Time-Sharing Operating System
A time-sharing OS allows multiple users or processes to interact with the computer by giving each one a small amount of CPU time.
This small CPU interval is called a time slice or time quantum.
Example:
Time ↓ User A → CPU User B → CPU User C → CPU User A → CPU User B → CPU
Because switching happens very quickly, users feel that they are using the system simultaneously.
Main Goal
Provide fast response and interactive computing.
Characteristics
- Interactive
- Supports multiple users/processes
- Uses CPU time slices
- Requires efficient scheduling
5. Multiprocessing Operating System
A multiprocessing OS supports a computer with multiple CPUs or processor cores and can execute multiple processes in parallel.
For example:
Operating System | +-------+-------+ ↓ ↓ ↓ CPU 1 CPU 2 CPU 3 ↓ ↓ ↓ Process Process Process A B C
Modern computers commonly have multiple CPU cores.
For example:
4-Core CPU Core 1 → Process A Core 2 → Process B Core 3 → Process C Core 4 → Process D
Advantages
- Higher performance
- Better throughput
- Parallel execution
- Improved reliability in some architectures
6. Multi-User Operating System
A multi-user OS allows multiple users to use system resources.
For example, a Linux server can have:
User A User B User C User D ↓ Linux Server
Each user may have different:
- Accounts
- Files
- Permissions
- Processes
- Resource access
Example
Linux and Unix systems are commonly used as multi-user systems.
Important
Multi-user does not necessarily mean that all users physically sit at the same computer.
Users can access a server remotely.
7. Distributed Operating System
A Distributed Operating System manages a collection of interconnected computers and attempts to make them work together as a coordinated system.
Simplified:
Distributed OS | +---------+---------+ ↓ ↓ ↓ Computer 1 Computer 2 Computer 3 | | | +---------+---------+ Network
The machines communicate through a network.
Goals
- Resource sharing
- Load distribution
- Reliability
- Parallel processing
- Transparency
Important Concept
The user may perceive multiple connected computers as a coordinated system.
Distributed operating systems are different from simply having computers connected to a network.
8. Network Operating System
A Network Operating System (NOS) provides services for computers connected through a network.
It can manage:
- Network users
- Shared files
- Printers
- Authentication
- Network resources
- Remote access
Example:
PC 1 ───┐ PC 2 ───┼── Network Server PC 3 ───┤ PC 4 ───┘
Examples include server-oriented Windows and Linux systems providing network services.
Difference from Distributed OS
| Network OS | Distributed OS |
|---|---|
| Computers are clearly separate | Attempts to provide more unified system behavior |
| Network resource sharing is important | System-wide coordination is important |
| Users may know which machine provides a service | Greater transparency may be provided |
| Common in servers | More specialized concept |
9. Real-Time Operating System (RTOS)
A Real-Time Operating System is designed to respond to events within specified timing constraints.
The important point is not simply "fast."
The important point is:
Predictable response within required deadlines.
For example:
Sensor detects event ↓ RTOS receives event ↓ Process executes ↓ Actuator responds
RTOS is useful when timing is critical.
Examples of applications
- Industrial control
- Robotics
- Automotive systems
- Medical equipment
- Aerospace systems
- Embedded controllers
Types of Real-Time Systems
Hard Real-Time
Missing a deadline can cause serious system failure.
Example:
Aircraft control system
Soft Real-Time
Missing an occasional deadline is undesirable but not necessarily catastrophic.
Example:
Multimedia/audio processing
10. Embedded Operating System
An Embedded Operating System is designed for specialized devices with limited resources or specific functions.
Examples:
Smart TV Router Printer IoT device Car controller Industrial controller
Typical characteristics:
- Limited memory
- Limited processing power
- Specific purpose
- Low power requirements
- Reliable operation
For example:
IoT Device ↓ Microcontroller ↓ Embedded Software / RTOS ↓ Sensors + Actuators
Examples of embedded OS technologies include FreeRTOS and Zephyr.
11. Mobile Operating System
A Mobile Operating System is designed specifically for mobile devices such as smartphones and tablets.
Major examples:
- Android
- iOS
Mobile operating systems manage:
- Touchscreen
- Camera
- GPS
- Mobile network
- Wi-Fi
- Bluetooth
- Battery
- Sensors
- Applications
Example:
Android | +-------+-------+ ↓ ↓ ↓ Camera GPS Wi-Fi ↓ ↓ ↓ Hardware + Sensors
Important Comparison
| Type | Main Purpose |
|---|---|
| Batch OS | Process jobs in batches |
| Multiprogramming OS | Keep CPU busy with multiple programs |
| Multitasking OS | Run multiple tasks seemingly simultaneously |
| Time-Sharing OS | Give users/processes CPU time slices |
| Multiprocessing OS | Use multiple CPUs/cores |
| Multi-User OS | Support multiple users |
| Distributed OS | Coordinate multiple computers |
| Network OS | Manage network resources/services |
| Real-Time OS | Meet timing/deadline requirements |
| Embedded OS | Run specialized devices |
| Mobile OS | Manage smartphones/tablets |
Important Differences
Multiprogramming vs Multitasking
| Multiprogramming | Multitasking |
|---|---|
| Multiple programs are kept in memory | Multiple tasks are actively managed |
| Main goal is CPU utilization | Main goal is responsiveness and task management |
| CPU switches when a process waits, historically | CPU can be preemptively switched between tasks |
| Concept is strongly associated with batch systems | Common in modern desktop/mobile systems |
Multitasking vs Multiprocessing
These two terms are often confused.
Multitasking
Multiple tasks are managed by the OS.
One or more CPU cores ↓ Task A Task B Task C
Multiprocessing
Multiple processors/cores are available for execution.
Core 1 → Task A Core 2 → Task B Core 3 → Task C
A modern computer can have both multitasking and multiprocessing.
Time-Sharing vs Real-Time
| Time-Sharing | Real-Time |
|---|---|
| Focuses on interactive response | Focuses on timing deadlines |
| CPU time is shared | Tasks may have strict priorities/deadlines |
| Used in general-purpose systems | Used where predictable timing is important |
| Example: interactive Linux system | Example: industrial controller |
Easy Way to Remember
Think about the main purpose:
Batch → Jobs in batches Multiprogram → Keep CPU busy Multitasking → Many tasks Time-sharing → Many users/tasks get time slices Multiprocessing→ Multiple CPUs/cores Multi-user → Many users Distributed → Many computers work together Network → Network resources Real-time → Timing deadlines Embedded → Specialized devices Mobile → Phones/tablets
Exam Definition
An operating system can be classified into different types based on its processing method, number of users, number of processors, response requirements, and target device. Major types include batch, multiprogramming, multitasking, time-sharing, multiprocessing, multi-user, distributed, network, real-time, embedded, and mobile operating systems.