Week 4 Bootstrapping and Interrupt Handling
Week 4 Bootstrapping and Interrupt Handling
1. Bootstrapping Process
• Definition: The initial process of starting up a computer and loading the operating
system.
• BIOS (Basic Input/Output System): Firmware that initializes hardware during the boot
process and provides runtime services for operating systems and programs.
o Characteristics: Older, text-based interface; limited to 16-bit mode.
• UEFI (Unified Extensible Firmware Interface): Modern firmware interface that
replaces BIOS. Supports a graphical interface and more advanced features.
o Characteristics: Supports 64-bit mode, large disk sizes, and faster boot times.
Overview: Bootstrapping (or "booting") refers to the process of starting up a computer and
loading the operating system into memory. This process involves initializing hardware,
performing self-tests, and setting up the system so that it can run software applications.
Key Components:
• Firmware: The low-level software stored in ROM or flash memory that provides basic
hardware initialization and control (e.g., BIOS, UEFI).
• Boot Sector: The initial sector on a storage device containing the boot loader code.
• Boot Configuration: Files and settings that dictate how the operating system should be loaded
and initialized (e.g., boot configuration data in Windows, GRUB configuration in Linux).
Interrupt Handling
Overview: Interrupt handling is a mechanism that allows the CPU to respond to urgent or high-
priority tasks by pausing its current activities and executing specific routines to address the
interrupt. This process is essential for efficient and responsive system operation.
Types of Interrupts:
1. Hardware Interrupts:
o Definition: Signals sent by hardware devices to indicate that they need attention from
the CPU.
o Examples: Keyboard input, network packet arrival, disk I/O completion.
o Mechanism: Hardware devices send an interrupt request (IRQ) to the CPU.
2. Software Interrupts:
o Definition: Interrupts generated by software instructions, typically used for system
calls or exception handling.
Conclusion
Bootstrapping and interrupt handling are fundamental processes in computer systems that
ensure proper initialization and responsive operation. Bootstrapping involves starting up the
system and loading the operating system, while interrupt handling enables the CPU to
efficiently respond to and manage hardware and software requests. Understanding these
processes is crucial for system stability, performance, and effective resource management.