Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

Computer-system organisation and the interrupt cycle

Bus architecture, interrupt types, ISR flow and CPU/I-O bursts.

Module 1 Session 1.4 Lesson 1 of 4

Computer System Organization & Execution Cycles

Interactive guide to hardware controllers, system bus communication, interrupts, and CPU/IO bursts

System Bus Architecture

Click any component below to trigger an event or view detailed controller specifications.

disks mouse keyboard printer monitor CPU disk controller USB controller graphics adapter system bus memory
STATUS: System running in normal execution mode. Click buttons above to simulate events.

Hardware & Bus Architecture

The Common System Bus
A shared communication channel connecting CPU, Memory, and Device Controllers.
Think: All devices compete for access to this single shared bus highway.
Device Controllers
Specialized hardware processors managing specific devices with local buffers and registers.
Think: Controllers free the CPU from having to handle low-level pin signals manually.

The Interrupt & Driver Cycle

Device Drivers
OS software components that understand device controllers and expose a uniform API to the kernel.
Think: Device drivers translate between the kernel and the hardware.
The Interrupt Signal
Alerts CPU over control lines when an I/O transfer completes in local controller buffer space.
Think: Interrupts allow asynchronous execution without CPU polling loops.

Interrupt Types

Maskable (INTR)
Can be disabled or delayed by CPU during critical instruction execution blocks.
Non-Maskable (NMI)
High-priority hardware events (e.g., power failure, RAM parity errors) handled immediately.
Software Interrupts (Traps)
Initiated via explicit software instructions to request kernel system calls or handle errors (e.g., division by zero).

Execution Flow

1. Signal Issue
Hardware device triggers a control line sending a unique request vector over system bus.
2. State Storage
Current CPU Program Counter (PC) and registers are saved safely onto the system stack.
3. Context Restore
Once processed, previous state is popped back, resuming user applications seamlessly.

Interrupt Handler (ISR)

Vector Table Search
CPU maps the interrupt vector directly to an entry in the hardware-defined Interrupt Vector Table (IVT).
Service Execution
Runs device driver subroutine (ISR) to clean buffers and retrieve pending data packages.
IRET Return
Executes explicit Interrupt Return instruction, restoring original user execution mode.

CPU Burst Time

Active Execution
Duration a process spends continuously executing machine instructions on the CPU core without blocking.
Think: Math models, scientific simulations, and video encoding exhibit long CPU bursts.
State Preservation
Ends when process voluntarily yields, gets preempted by timer, or initiates an I/O request.

I/O Burst Time

Waiting Period
Elapsed time a process spends blocked waiting for storage disk reads/writes, network packets, or user keystrokes.
Think: I/O operations are orders of magnitude slower than CPU execution speeds.
CPU Release
CPU is freed so the OS scheduler can context-switch to another ready process, maximizing hardware utilization.