Operating Systems Flashcards
What is Bootstrapping?
The process of loading the initial instructions into the computer to start the OS
What does BIOS do during the start-up process?
Performs POST to check hardware
Initializes memory and hardware components
Provides low-level routines for hardware interfacing
Locates and loads the bootloader from a bootable device
What is the role of a OS?
Interfaces between hardware and software
Manages system resources
Ensures fair access to CPU and hardware for multiple programs
Handles user inputs and outputs
True or False: A process is the running instance of a program which includes its code, memory and resources
True
What is the purpose of I/O buffering?
To handle speed and size mismatches between devices and the CPU while maintaining data integrity
What are the three types of buffering?
Single buffering, Double buffering and then Circular buffering
How does the OS interact with I/O devices
Using device drivers
What happens when an interrupt is triggered?
Save program counter and processor state
Execute the interrupt handler
Transfer data
Clear the interrupt
Resume the interrupted process
What is the main role of memory management in an OS?
Handles relocation, allocation, protection, sharing, logical organization and physical organization of memory
List the three types of Address Binding in Memory Management
Compile-time, load-time and run-time
What does the Memory Management Unit (MMU) do?
The MMU maps logical memory addresses to physical memory addresses with the relocation register holding the base address of a process
List the three common dynamic partitioning algorithms and their main issue
First fit
Best fit
Worst fit
They all suffer from fragmentation
Define a ‘page fault’
A page fault is an exception raised when a process cannot map to a memory page
List 3 advantages of Virtual Memory
Efficiency, convenience and portability
What is the stack used for in memory management?
The stack is faster, Last-in-First-Out (LIFO) structure for temporary data created by the OS