SemSure
←Operating Systems · Unit 1Operating-system foundations✓ 0/51/103
① Topic

Operating-system foundations

Definition
An operating system manages hardware resources and provides abstractions that let programs use those resources in a controlled way.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

① Topic

Hardware, kernel, applications and users

The CPU, memory and devices supply the physical capabilities. The kernel is the protected core. System programs and applications use its abstractions, such as processes, files and sockets.

① Topic

Convenience and resource allocation

A personal computer emphasizes responsive interaction. A shared server must also enforce fair access and isolation. An embedded controller may prioritize predictability or energy use over a graphical interface.

① Topic

User mode and kernel mode

Hardware mode bits distinguish unprivileged application execution from privileged kernel operations. A trap or interrupt enters a kernel handler. The return restores the prior execution context and privilege.

① Topic

Interrupt-driven input and output

A controller completes I/O independently and raises an interrupt request. The CPU saves enough context to dispatch the interrupt service routine, which acknowledges completion, records status and may wake a waiting process.

① Topic

Polling and DMA

With polling the CPU repeatedly checks a device status register. With DMA the CPU programs a memory address, direction and length, then the controller transfers the data. A completion interrupt tells the CPU that the buffer is ready.

① Topic

Storage from registers to archives

Registers and caches provide fast volatile storage. RAM holds active pages. SSDs and disks provide persistent secondary storage. Tertiary tape or removable media serve backup and archival workloads at higher access latency.

① Topic

Batch versus interactive systems

Batch workloads can be queued with their inputs and processed without continuous interaction. Interactive workloads depend on responsive feedback to user actions. Time sharing interleaves work with short CPU turns.

① Topic

Multiprogramming and parallel execution

Multiprogramming keeps multiple jobs available so the CPU can run another when one blocks. Multiprocessing provides multiple cores or processors that can literally execute at the same time.

① Topic

Real-time and embedded systems

An embedded OS runs within a device built for a specific function. A real-time OS schedules for timing constraints. The properties overlap, but an embedded system can be best effort and a real-time system can be general-purpose hardware.

② Question

Explain the kernel’s hardware and software interfaces · Jul2025 Q22b

8Asked in: Jul2025 Q22b

Paraphrase the role of the kernel in an operating system and how it interacts with hardware and software.

③ Learn · step 1 of 4

Locate the kernel

The kernel is the privileged OS core, responsible for scheduling, memory protection and resource ownership.

③ Learn · step 2 of 4

Trace a software request

A program requests a protected operation through a system call. The kernel checks its arguments and rights, then calls the appropriate subsystem.

③ Learn · step 3 of 4

Draw the hardware path

A driver programs a controller. Its interrupt later transfers execution to the kernel, which can wake a blocked caller.

Applications → system-call interface → protected kernel → hardware
                                       ↳ driver → device controller
③ Learn · step 4 of 4

Check the authority boundary

A normal application can read its own file if authorized. It cannot issue arbitrary device instructions or overwrite another process’s pages.

④ Exam answer

Booklet answer · Explain the kernel’s hardware and software interfaces · Jul2025 Q22b

The kernel implements the essential privileged functions of the OS, including CPU scheduling, memory management, file and device management, and protection. It exports system calls through which software requests operations. A trap switches the processor to kernel mode, where the kernel checks access and dispatches a handler.

On the hardware side, the kernel uses memory-management facilities, interrupt handlers and device drivers. For example, a read may block while a controller transfers data, then an interrupt informs the kernel so it can wake the requester. The hardware protection boundary prevents user code from bypassing these checks.

Applications → system-call interface → protected kernel → hardware
                                       ↳ driver → device controller
② Question

Explain the OS from different perspectives · Jun2023 Q21

4Asked in: Jun2023 Q21

Discuss the role of operating system from different perspective.

③ Learn · step 1 of 3

Start with the user view

A user with a dedicated desktop expects convenience and responsiveness. A shared system also has to divide finite resources fairly among competing users.

③ Learn · step 2 of 3

Move to the system view

A resource allocator decides which job receives CPU time, RAM and a device. A control program directs execution and stops erroneous or unauthorized operations.

③ Learn · step 3 of 3

Check with a device example

When applications print concurrently, the OS queues their jobs and serializes use of the printer. Users see a simple service and the system sees an exclusive device.

④ Exam answer

Booklet answer · Explain the OS from different perspectives · Jun2023 Q21

From the user’s viewpoint, the OS supplies convenient, responsive services such as executing programs and storing files. A shared environment also requires fair and isolated access.

From the system’s viewpoint, the OS is a resource allocator for processors, memory and devices, and a control program that supervises execution, errors and I/O. Print spooling illustrates both views: applications submit jobs through one interface while the OS schedules access to the shared device.

② Question

Differentiate four OS types · Jun2023 Q28a

12Asked in: Jun2023 Q28a

Differentiate among the following types of OS by defining their essential properties. (i) Time sharing (ii) Batch system (iii) Real time (iv) Embedded.

③ Learn · step 1 of 4

Separate throughput from responsiveness

Batch systems queue jobs, then process complete input sets. Time sharing uses preemption and short CPU slices to provide interactive response for many sessions.

③ Learn · step 2 of 4

Identify deadline requirements

In a hard real-time controller a late result is a correctness failure. In soft real-time media playback, occasional delays degrade quality.

③ Learn · step 3 of 4

Identify the system’s purpose

Embedded software runs a specific device and often faces memory, power or reliability limits. Real-time behavior is a separate requirement and depends on the device.

③ Learn · step 4 of 4

Check the classifications on examples

Monthly statements are batch, a multi-user terminal server is time sharing, a braking controller is hard real time and a simple printer controller is embedded.

④ Exam answer

Booklet answer · Differentiate four OS types · Jun2023 Q28a

Batch systems collect submitted jobs and execute them without continuous user interaction. Grouping work can improve throughput, but feedback arrives after the job runs. Payroll is a typical batch workload.

Time-sharing systems interleave the execution of interactive users or programs by preempting at short intervals. A shared terminal server illustrates how rapid switching provides acceptable response time.

A real-time system must meet defined timing constraints. Hard real-time deadlines are mandatory, while a soft real-time miss reduces quality. Examples are a braking controller and multimedia playback respectively.

An embedded OS is part of a purpose-built device, such as a printer. It is designed around the device’s memory, power, I/O and reliability constraints. Some embedded systems have real-time deadlines.

② Question

Classify three workloads and distinguish interfaces · Nov2024 Q21b

8Asked in: Nov2024 Q21b

(i) Classify the following applications as batch-oriented or interactive. Justify your answer. (a) Word processing (b) Generating monthly bank statements (c) Credit card companies’ bill generation. (ii) Differentiate between system call and Library function.

③ Learn · step 1 of 4

Classify word processing

Editing depends on each keystroke and command. Prompt visual feedback makes this an interactive activity.

③ Learn · step 2 of 4

Classify periodic statement generation

Bank statements and credit card bills are generated from collected transactions on a billing schedule. Once submitted, the jobs generally need no live user input.

③ Learn · step 3 of 4

Separate a library call from a system call

A library function obeys the program calling convention and may stay in user mode. A system call enters the kernel for protected work.

③ Learn · step 4 of 4

Check a buffered I/O case

A library call can return bytes from an existing buffer. Once it needs more input, its implementation can make a read system call.

④ Exam answer

Booklet answer · Classify three workloads and distinguish interfaces · Nov2024 Q21b

(i) Word processing is interactive because each edit requires user input and a prompt response. Monthly bank statements and credit card bills are batch jobs because they process many accounts and transactions in a periodic run without continuous interaction.

(ii) A system call requests a kernel service using a controlled privilege transition. For example, read obtains bytes from an open file descriptor. A library function is an ordinary callable routine, such as strlen. A library routine can wrap a system call, but the two interfaces are distinct.

① Topic

OS services and system calls

Definition
A system call is a controlled request for a service implemented by the kernel.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

① Topic

User-facing services

The OS supplies user interfaces, program execution, controlled I/O, file manipulation, communication and error detection. Each abstraction allows different hardware or execution contexts to appear through a common API.

① Topic

System-facing services

The kernel allocates CPU, memory and device time, records usage for accounting, and checks protection policy. Error detection helps it isolate a failed process or device operation.

① Topic

System-call entry and return

A wrapper prepares a call number and arguments in registers or memory. The trap transfers execution to the kernel’s entry point, which validates arguments and access rights, dispatches the handler and returns a result.

① Topic

Process and memory requests

Process-control calls include fork, exec, wait and exit. Memory calls include mapping a file or allocating address-space regions. These operations can change protected state and therefore need kernel mediation.

① Topic

File, communication and device requests

Examples are opening, reading and writing a file, requesting a device operation, sending a message or creating a connection. The handler may block the caller while I/O completes.

① Topic

Information and protection

A program can query the time or its process ID and request a permission change. The kernel checks any authority required by the operation.

① Topic

System calls versus library functions

A library function is called through the language’s usual calling convention. It may perform all work in user mode, as strlen does, or wrap a system call such as read. Buffered I/O can call the kernel only when it needs more bytes.

② Question

Classify system calls for a developer · Jul2025 Q21a

8Asked in: Jul2025 Q21a

Consider that you are a software developer working on an operating system project. You need to interact with the kernel to perform various tasks like reading from files, writing to files, creating processes, and managing memory. These interactions are done using system calls. You need to explain to a new team member what system calls are and describe the different types available in detail.

③ Learn · step 1 of 4

Trace the controlled entry

A wrapper supplies an identifier and arguments. The CPU enters privileged mode, the kernel validates the call and the result comes back to user space.

③ Learn · step 2 of 4

Classify the scenario’s requests

Reading and writing are file operations. Spawning and waiting are process control. Mapping virtual regions is memory management.

③ Learn · step 3 of 4

Describe the remaining groups

Device control, system information, communication and protection provide more distinct services. Give one operation and purpose for each.

③ Learn · step 4 of 4

Check with read and fork

Reading validates the descriptor and buffer. Fork sets up a child execution context and returns different results in the parent and child.

④ Exam answer

Booklet answer · Classify system calls for a developer · Jul2025 Q21a

A system call is the protected interface through which a user program requests a kernel operation. A trap enters kernel mode, where the handler validates arguments and authority before performing the operation and returning a result or error.

Process control includes fork, exec, wait and exit. File operations include open, read, write and close. Memory operations map or unmap virtual regions and control their permissions. Device calls request or configure devices, for example through ioctl. Information calls obtain system time or process identifiers. Communication calls create pipes or exchange data through sockets. Protection calls query or change permissions only when authorized. For example, a read request uses a descriptor referring to an already opened object, so the kernel can verify access and perform or schedule the transfer.

② Question

Relate OS services to system performance · May2025 Q21a

8Asked in: May2025 Q21a

Describe in detail the various services provided by an operating system, explaining how each service contributes to the overall functionality and performance of the system.

③ Learn · step 1 of 4

Start with program execution

Loading an executable, setting up an address space and starting a thread make a program runnable. Cleanup enables resources to be reused.

③ Learn · step 2 of 4

Connect interfaces to devices and data

Files provide naming and persistent storage. Buffered I/O can overlap device and CPU work. IPC coordinates cooperating jobs.

③ Learn · step 3 of 4

Explain allocation and accounting

Schedulable CPU time, reusable pages and queued I/O allow multiple processes to share finite resources. Measurement informs quotas and performance work.

③ Learn · step 4 of 4

Check error and security handling

Validation, error reporting and isolation protect other jobs without denying authorized access.

④ Exam answer

Booklet answer · Relate OS services to system performance · May2025 Q21a

Operating-system services provide a usable interface and manage shared resources. A command shell or GUI accepts commands. Program execution loads an executable, creates the execution environment, schedules it and cleans up on termination. I/O services hide device details and may buffer requests. File-system services organize names, support creating, reading, writing and deleting files, and preserve persistent data. Communication provides shared memory and message passing between processes.

The OS detects errors and isolates or reports their effects. Resource allocation coordinates CPU time, memory and I/O for concurrent work. Accounting records usage for diagnostics or quotas. Protection and security enforce access rights and prevent one program from interfering with another. These services support responsiveness, effective resource utilization and reliable execution.

② Question

Explain OS services and describe booting · Nov2025 Q21a

8Asked in: Nov2025 Q21a

(i) Explain the major operating system services. How are they implemented using system calls? (4 Marks) (ii) Explain the steps involved in system booting. Describe the role of the bootstrap program and bootloader. (4 Marks)

③ Learn · step 1 of 4

Group the services

Execution, file and I/O operations, and IPC are user-visible services. Allocation, accounting and protection support safe sharing.

③ Learn · step 2 of 4

Trace a system call

The user wrapper prepares the request, a trap enters the kernel, the handler checks it and the processor returns to user mode.

③ Learn · step 3 of 4

Draw the boot sequence

Firmware starts at reset, initializes hardware and starts a bootloader. The loader places the kernel and boot information in memory.

Reset → firmware → boot manager → OS loader → kernel → system services
③ Learn · step 4 of 4

Check the point of handover

After the loader transfers control, the kernel initializes device drivers, memory management and user-space startup services.

④ Exam answer

Booklet answer · Explain OS services and describe booting · Nov2025 Q21a

(i) The OS supplies program execution, storage and I/O, communication and error handling, alongside allocation and protection. A program requests a service through a system call. The system-call instruction transfers control to a privileged handler, which validates the request, performs the service and returns a status.

(ii) At reset, firmware initializes essential hardware and identifies a boot target. The bootstrap sequence starts the bootloader. The loader loads the selected OS kernel and any initial RAM disk into memory, passes boot parameters and jumps to the kernel entry point. The kernel initializes memory and device management and launches the first user-space services.

Reset → firmware → boot manager → OS loader → kernel → system services
① Topic

Startup and dual boot

Definition
Bootstrapping brings a machine from its hardware reset state to a running operating system.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

① Topic

Firmware starts the machine

On reset the processor begins at a firmware entry point. Firmware initializes enough hardware to find bootable media and execute the next stage.

① Topic

A boot manager selects an entry

A boot menu records available systems and their loader locations. A default entry and timeout allow unattended startup.

① Topic

The OS loader prepares the kernel

The loader locates the selected kernel and any initial RAM filesystem, loads them into memory, passes boot data and transfers control. The kernel initializes drivers, memory tables and the first user-space service.

① Topic

Draw the startup chain

Reset → firmware → boot manager → OS loader → kernel → system services
② Question

Design a multi-OS boot sequence · Jul2025 Q21b

8Asked in: Jul2025 Q21b

How could a system be designed to allow a choice of operating systems from which to boot? What would the bootstrap program need to do?

③ Learn · step 1 of 4

Set up selectable boot entries

Install each OS in an identifiable partition or disk. Store a list of loaders and their locations in firmware entries or a common boot manager.

③ Learn · step 2 of 4

Make the selection

At startup, the boot manager displays entries and accepts a choice, with a default after a timeout.

③ Learn · step 3 of 4

Draw the handover

For the chosen entry, load its kernel directly or chainload its own bootloader. Pass boot-device and other required parameters.

Reset → firmware → boot manager → OS loader → kernel → system services
③ Learn · step 4 of 4

Check unattended and failed startup

A default keeps routine startup unattended. Missing entries or invalid loader files should report a failure and allow another entry.

④ Exam answer

Booklet answer · Design a multi-OS boot sequence · Jul2025 Q21b

Store each operating system and its loader on an identifiable disk or partition. The firmware starts a boot manager, which reads a configuration containing OS labels and loader locations. It presents a menu and uses a default entry if the timeout expires.

After selection, the bootstrap program loads the chosen kernel and any required startup data or transfers control to that OS’s own bootloader. The selected loader arranges memory and device information for the kernel and transfers execution to its entry point. Other installed operating systems need not execute.

Reset → firmware → boot manager → OS loader → kernel → system services
① Topic

Kernel structures, virtual machines and clusters

Definition
The OS structure determines which components run together, what interfaces they use and which faults can be isolated.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

① Topic

Monolithic kernels

Most core services share kernel privilege and address space. Direct calls are fast and loadable modules can extend functionality, but a faulty privileged driver can affect the entire system.

① Topic

Layered design

A layer exposes services to higher layers and uses well-defined lower interfaces. This clarifies testing and boundaries but can constrain design or add crossings.

① Topic

Microkernels

A small privileged core provides basic scheduling, IPC and address-space mechanisms. File systems and many drivers can run in user space as servers. IPC and context transitions can add overhead.

① Topic

Virtual machines

A hypervisor presents virtual CPUs, memory and I/O to separate guest OS instances. Isolation and consolidation improve, while virtualization consumes resources and complicates I/O performance analysis.

① Topic

Active-passive cluster

A primary node owns and updates shared database storage. A standby takes over after failure. Quorum and fencing ensure the failed or isolated node cannot continue writing while takeover occurs.

① Topic

Active-active cluster

Both nodes serve workload. With shared data, a distributed lock manager, cache coherence and transaction software coordinate changes. This improves use of both nodes while increasing coordination cost.

① Topic

Replication is a distinct cluster design

A shared-nothing cluster can instead keep storage per node and replicate database state. Its acknowledgement and failover rules determine data loss and availability. Two independently writable unsynchronized copies are unsafe.

② Question

Describe four OS structures · Jun2023 Q28b

12Asked in: Jun2023 Q28b

Discuss the essential features of the following structure of operating systems. (i) Monolithic system (ii) Micro kernels (iii) Virtual machines (iv) Layered systems.

③ Learn · step 1 of 4

Start with one privileged address space

Monolithic designs run most services together. This keeps calls inexpensive and requires careful control of privileged components.

③ Learn · step 2 of 4

Compare levels and servers

Layers constrain which interfaces are used. A microkernel gives separate servers protection boundaries and a communication mechanism.

③ Learn · step 3 of 4

Draw the virtual hardware boundary

A hypervisor gives each guest a compatible virtual machine. A guest OS still manages its virtual resources.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
③ Learn · step 4 of 4

Check what each design isolates

A layer isolates implementation dependencies, IPC separates servers, and virtualization isolates entire guest environments.

④ Exam answer

Booklet answer · Describe four OS structures · Jun2023 Q28b

In a monolithic system, schedulers, file systems and drivers commonly execute with kernel privilege and call one another directly. This yields fast internal interaction, while a kernel component failure may affect the entire machine.

A microkernel keeps a privileged core for mechanisms such as task scheduling, address spaces and interprocess messages. User-space servers implement higher services, improving isolation at the cost of communication.

A virtual machine monitor presents virtual hardware to each guest, which can run its own OS. Isolation supports testing, consolidation and multiple OS environments, with some overhead and shared physical resource contention.

A layered system organizes components by abstraction and restricts each layer to documented lower interfaces. Layers simplify testing and maintenance but can make cross-cutting services awkward.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
② Question

Describe the layered approach and microkernel structure · May2023 Q28a

12Asked in: May2023 Q28a

Describe the features of the following types of operating systems structures. (i) Layered approach (ii) Micro kernel system structure.

③ Learn · step 1 of 4

Build the layer hierarchy

Put hardware at the bottom. A layer depends on lower services and hides implementation details from upper layers.

③ Learn · step 2 of 4

Place the microkernel’s mechanisms

Keep scheduling, address-space control and IPC in the kernel. File systems and drivers may become servers with distinct protection domains.

③ Learn · step 3 of 4

Draw the two request paths

Trace file access through the layered interfaces and through IPC to a microkernel file server.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
③ Learn · step 4 of 4

Check fault isolation and overhead

Layering provides logical separation and may still share privilege. User-space servers provide a hardware-enforced boundary but need messages and scheduling.

④ Exam answer

Booklet answer · Describe the layered approach and microkernel structure · May2023 Q28a

A layered OS is partitioned into levels. The lowest represents hardware, while higher levels provide CPU and memory abstractions, block I/O, files and user-facing operations. Each layer exposes a defined interface and calls lower services, simplifying debugging and replacement. The difficulty is satisfying performance and dependency constraints without bypassing layers.

A microkernel contains the smallest practical set of privileged mechanisms, usually low-level scheduling, IPC and address-space management. Services such as files, networking and drivers can run as user processes, with requests and results passed by IPC. This improves modularity and fault containment and makes new services easier to add. Message passing, domain crossings and scheduling can cost more than direct calls. Layers are a dependency scheme, while a microkernel design decides which components must hold kernel privilege.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
② Question

Compare monolithic, layered and microkernel layouts · May2025 Q21b

8Asked in: May2025 Q21b

Write a note on Monolithic, Layered and microkernel OS structure and discuss pros and cons for the same.

③ Learn · step 1 of 4

Identify privilege placement

In a monolithic system the main services run in one privileged address space and can call one another directly.

③ Learn · step 2 of 4

Identify interface boundaries

Layered design arranges services in levels and limits dependencies. Microkernels move many services out of privileged space.

③ Learn · step 3 of 4

Draw a filesystem request through the designs

A filesystem operation may call a kernel routine directly, pass through defined layers, or send a message to a separate server.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
③ Learn · step 4 of 4

Check two trade-offs for each

Compare the cost of crossing boundaries with the ease of replacing, testing or isolating a failing component.

④ Exam answer

Booklet answer · Compare monolithic, layered and microkernel layouts · May2025 Q21b

A monolithic kernel contains scheduling, memory management, file systems and drivers in privileged space. Direct calls are efficient, but a defective privileged component can corrupt other kernel state. Modules can improve extensibility.

In a layered system each layer uses lower services and presents an interface above. This isolates dependencies and simplifies verification, but defining clean layers is difficult and repeated crossings add cost.

A microkernel retains only essential mechanisms such as scheduling, IPC and low-level memory management. Other services are user-space servers. Fault isolation and replaceability improve, but IPC and context-switching overhead can increase latency.

Monolithic:  applications → [scheduler + files + drivers] → hardware
Layered:     user interface → files → block I/O → hardware
Microkernel: application ↔ IPC ↔ user-space file server
                            ↓
                      small kernel → hardware
Virtualized: guest OS A ┐
             guest OS B ┴→ hypervisor → hardware
② Question

Coordinate disk access in a two-node database cluster · Nov2024 Q21a

8Asked in: Nov2024 Q21a

Consider a computing cluster consisting of two nodes running a database. Describe two ways in which the cluster software can manage access to the data on the disk. Discuss the benefits and disadvantages of each.

③ Learn · step 1 of 4

Start with active-passive ownership

Only the current primary is allowed to write the shared disk. A standby monitors health and takes over after the primary is fenced.

③ Learn · step 2 of 4

Compare simultaneous database service

With active-active shared disk, both nodes serve requests. Distributed locks and cache coordination protect pages and database metadata.

③ Learn · step 3 of 4

Analyze failures and cost

Primary-only is simpler, while active-active uses both nodes. Network partition requires split-brain prevention and recovery in either design.

③ Learn · step 4 of 4

Check the write invariant

No two uncoordinated writers may modify the same state. Heartbeats alone do not prove that a node has lost access to storage.

④ Exam answer

Booklet answer · Coordinate disk access in a two-node database cluster · Nov2024 Q21a

An active-passive cluster gives one node exclusive access to the shared database disk. The second node monitors it and acquires ownership on failure. Quorum or fencing prevents both nodes from writing after a network partition. Exclusive ownership simplifies consistency and recovery, but standby capacity is underused and failover may interrupt service.

In an active-active shared-disk cluster both nodes serve database requests. The cluster and database coordinate access with distributed locks, cache coherence and transaction logging. This can improve utilization and support continuous service, but coordination adds latency and implementation complexity. Fencing is still required on membership failure so a stale node cannot modify persistent data.

Practice

Part A quick check

PaperQuestion and optionsAnswer and reason
Jul2025 Q1

Which among the following is the fastest among all the categories in a memory hierarchy?

A. Main memory
B. L1 Cache memory
C. CPU registers
D. Secondary Memory
C · CPU registers are closer to the execution units than the other listed storage.
Jul2025 Q2

Device controller informs CPU that it has finished its operation by causing _____.

A. Interrupt
B. Message
C. Information
D. Command
A · An interrupt transfers control to the appropriate handler.
Jul2025 Q3

Which among the following service is provided by Operating System to serve the user?

A. Resource Allocation
B. Protection and Security
C. Logging
D. File System Manipulation
D · The textbook groups file manipulation with user-facing services.
Jul2025 Q4

In a multiprogramming system, what is the primary goal?

A. To ensure a single program runs faster
B. To maximize CPU utilization
C. To minimize user input
D. To provide an integrated development environment
B · When one job waits for I/O, another can run.
May2023 Q1

The main advantages of batch operating system is _____.

A. Low cost
B. Multiple users can share the batch system
C. Easy debug
D. Suitable for managing small work
B · Jobs submitted by different users can be queued and processed in batches.
May2023 Q2

Operating system is not a _____.

A. System software
B. First loaded program by boot program
C. Hardware software interface
D. Application software
D · An OS provides system-level services that applications use.
May2023 Q3

Hardware interrupt is made by _____.

A. IRQ line
B. Interrupt handles
C. Special instructions
D. Interrupt condition
A · A hardware device can signal an interrupt request through IRQ.
May2023 Q4

Virtual machine is used for _____.

A. Utilization of memory
B. Running different operating systems simultaneously
C. Frequently used program
D. Multithreading
B · A hypervisor can run independent guest systems on one host.
May2023 Q8

A shell script is a file that contains _____.

A. Set of statements
B. Scheduling algorithm
C. Interrupt routine
D. Sequence of operating system commands and shell commands
D · The shell interprets the commands stored in the script.
May2023 Q13

The last on the hierarchy scale of memory device is _____.

A. Main memory
B. Secondary memory
C. TLB
D. Flash drives
B · Secondary storage sits below RAM in the hierarchy used here.
May2023 Q17

Which one of the following connects high-speed high-bandwidth device to memory subsystem and CPU?

A. Expansion bus
B. PCI bus
C. SCSI bus
D. External bus
B · PCI connects peripherals to the host system.
May2023 Q18

After the completion of DMA transfer, the processor is notified by _____.

A. Acknowledgement signal
B. Interrupt signal
C. WMFC signal
D. Control signal
B · The controller interrupts the CPU on completion.
May2025 Q1

Which among the following is the fastest among all the categories in a memory hierarchy?

A. Main memory
B. L1 Cache memory
C. CPU registers
D. Secondary Memory
C · Registers sit inside the CPU and provide the fastest access of the listed choices.
May2025 Q2

Device controller informs CPU that it has finished its operation by causing _____.

A. Interrupt
B. Message
C. Information
D. Command
A · A hardware interrupt signals I/O completion.
May2025 Q6

Systems that permit only a single process to execute at any given time are referred to as _____.

A. Uniprogramming systems
B. Uniprocessing systems
C. Unitasking systems
D. Multiprocessing systems
A · Uniprogramming admits one program at a time in this OS classification.
May2025 Q14

Which of the following is not a form of memory?

A. Instruction cache
B. Instruction register
C. Instruction opcode
D. Translation lookaside buffer
C · An opcode is the operation field of an instruction.
Nov2024 Q1

To access the services of the operating system, the interface is provided by the _____.

A. Library
B. System calls
C. Assembly instructions
D. API
B · System calls are the controlled interface into the kernel.
Nov2025 Q2

_____ is a software-generated interrupt caused either by an error or a user request.

A. Interpreter
B. Except
C. Process Abort
D. Trap
D · A trap is a synchronous transfer into the kernel.
Nov2025 Q3

_____ program loads operating system kernel and starts execution.

A. Virtualization
B. Bootstrap
C. Docker
D. Application
B · Bootstrap code locates and starts the kernel, directly or through a loader.
Nov2025 Q4

Device controller informs CPU that it has finished its operation by causing _____.

A. Interrupt
B. Input Output system trigger
C. Service Request
D. Segment
A · The controller raises an interrupt on completion.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

Unit 1 checklist

Before you move on, can you do each of these without looking?

0 of 5 topics complete

Not sure about one? Go back to it in the topic list and press Next step through the worked question once more. Ticks are saved in this browser. Final checklist for the subject →

Unit complete. Up next: Unit 2, Processes, threads, IPC and synchronization.

All units