BIT204 ยท 2079 ยท 10 marks
What are the different types of operating system? Differentiate between Real time and Batch OS.
What are the different types of operating system? Differentiate between Real time and Batch OS.[10]
Quick answer
An Operating System (OS) is system software that manages hardware and software resources and provides services to computer programs.
Types of Operating Systems and Difference Between Real-Time and Batch OS
Types of Operating Systems
An Operating System (OS) is system software that manages hardware and software resources and provides services to computer programs. Operating systems are classified into the following types:
1. Batch Operating System
- Jobs with similar requirements are grouped (batched) together and executed without user interaction.
- A job scheduler picks jobs from the batch and submits them to the CPU one by one.
- Example: Early IBM mainframe systems, payroll processing.
2. Time-Sharing (Multitasking) Operating System
- CPU time is shared among multiple users/processes simultaneously.
- Each process gets a small time slice (quantum) in a round-robin fashion.
- Provides fast response time and interactive use.
- Example: UNIX, Linux, Windows.
3. Real-Time Operating System (RTOS)
- Designed to process data and respond within a strict, guaranteed time constraint (deadline).
- Used in time-critical applications.
- Example: Air traffic control, medical devices, missile guidance systems, VxWorks.
4. Distributed Operating System
- Manages a group of independent computers and makes them appear as a single system to the user.
- Resources (CPU, memory, storage) are distributed across multiple machines.
- Example: LOCUS, Amoeba.
5. Network Operating System
- Provides features to manage data, users, groups, security, and applications over a network.
- Each machine has its own local OS but can share resources over the network.
- Example: Windows Server, Novell NetWare.
6. Multiprocessor Operating System
- Supports systems with more than one CPU sharing the same memory and I/O devices.
- Increases throughput and reliability.
- Example: Symmetric Multiprocessing (SMP) systems.
7. Embedded Operating System
- Designed to operate on small machines (embedded systems) with limited resources.
- Highly specialized and resource-efficient.
- Example: Android (mobile), FreeRTOS, Windows CE.
8. Mobile Operating System
- Designed specifically for smartphones and tablets.
- Manages mobile hardware such as touchscreen, GPS, camera.
- Example: Android, iOS.
Difference Between Real-Time OS and Batch OS
| Basis | Real-Time OS (RTOS) | Batch OS |
|---|---|---|
| Definition | An OS that processes tasks and produces results within a strict time deadline. | An OS that collects jobs into batches and processes them sequentially without user interaction. |
| Response Time | Extremely fast and guaranteed (microseconds to milliseconds). | Response time is slow and not guaranteed; depends on queue length. |
| User Interaction | Minimal or no user interaction during execution; but system reacts to real-world events. | No user interaction once the batch is submitted. |
| Deadline | Strict deadlines must be met (missing a deadline can cause system failure). | No concept of strict deadlines; jobs are processed as resources become available. |
| Priority | Tasks are assigned priorities; high-priority tasks preempt lower ones. | Jobs are processed in the order they are batched (FCFS or similar). |
| Scheduling | Priority-based, preemptive scheduling is used. | Non-preemptive, sequential scheduling is used. |
| Types | Hard RTOS (strict deadlines) and Soft RTOS (flexible deadlines). | Simple batch and multiprogrammed batch. |
| CPU Utilization | CPU utilization may not be maximum; correctness and timing are more important. | Aims for maximum CPU utilization. |
| Error Handling | Must handle errors immediately and reliably. | Errors are reported after job completion; job may be skipped. |
| Applications | Medical devices, missile systems, air traffic control, robotics. | Payroll processing, bank statements, weather forecasting data processing. |
| Complexity | More complex due to timing constraints and event-driven nature. | Relatively simpler to design and implement. |
| Example Systems | VxWorks, FreeRTOS, QNX. | Early IBM OS/360, simple mainframe batch systems. |
Summary
Operating systems are classified based on how they manage processes, respond to users, and handle time constraints. Batch OS focuses on throughput and sequential job processing with no real-time constraints, while Real-Time OS focuses on correctness within strict time limits, making it essential for safety-critical and time-sensitive applications.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.