PadhaikoAll subjects

Past exam question: 2073 (Past Questions), QK

Operating System · 4 marks

Open in the Padhaiko app

Topic: Introduction

Question

Explain in brief any four types of OS.

Solution

Batch Operating System and Real-Time Operating System: Operating systems are architected to satisfy specific computational, interactive, and structural requirements. Four prominent types include:

  1. Batch Operating System:
    • Concept: In early computing systems, users did not interact directly with the computer. Jobs with similar processing needs were gathered, grouped into "batches" by a human computer operator, and fed into the system sequentially.
    • Key Characteristics: Completely non-interactive; jobs execute to completion without human intervention. Programs use a job control language (JCL) to specify required compilers and datasets.
    • Limitation & Evolution: CPU remains completely idle whenever the executing job blocks for mechanical card reader or magnetic tape I/O; this limitation led directly to the development of multi-programmed batch systems.
    • Example: IBM OS/360.
  2. Real-Time Operating System (RTOS):
    • Concept: Designed for mission-critical systems where computing operations must produce accurate results within strictly bounded, deterministic time constraints called deadlines. System correctness depends on when the answer is delivered as well as what is computed.
    • Key Characteristics: Minimal interrupt latency, deterministic context-switching times, and priority-driven preemptive scheduling algorithms. Categorized into Hard Real-Time (zero tolerance for missed deadlines, e.g., pacemaker, spacecraft flight controller) and Soft Real-Time (degraded quality on missed deadlines, e.g., multimedia streaming).
    • Example: QNX, VxWorks, FreeRTOS.

Time-Sharing Operating System and Distributed Operating System:

  1. Time-Sharing (Multitasking) Operating System:
    • Concept: A logical extension of multiprogramming that provides concurrent interactive computing to multiple simultaneous users. The system rapid-fires the CPU among active processes using a fixed time quantum via round-robin preemptive scheduling.
    • Key Characteristics: Rapid context switching provides each connected user with the illusion of having exclusive, dedicated access to the entire computer. Prioritizes low response time to human input actions (keystrokes, mouse events).
    • Example: UNIX, Linux, Windows Server, Multics.
  2. Distributed Operating System:
    • Concept: Manages a collection of autonomous, independent computer systems interconnected via high-speed network communication channels (LAN or WAN).
    • Key Characteristics: Provides a single-system image, meaning the entire network of physical machines appears to users and applications as a single, coherent, centralized computer. It enables transparent resource sharing (distributed files, remote CPU compute cycles) and exhibits high fault tolerance (if one node crashes, other nodes continue operating seamlessly).
    • Example: Amoeba, Plan 9, LOCUS.
Answer:

Four major types of operating systems are: (1) Batch Systems, which process groups of non-interactive jobs sequentially to maximize throughput; (2) Real-Time Systems (RTOS), which guarantee deterministic execution completed within strict timing deadlines; (3) Time-Sharing Systems, which multiplex the CPU among multiple concurrent users using rapid round-robin time slicing for responsive interactive access; and (4) Distributed Systems, which unify independent network-connected computers into a transparent single-system image with distributed resource sharing.

All past exam questions for Operating System