Bootstrap Process Explained
- 19Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of the bootstrap program in a computer system?
19 questions
- 1
What is the primary purpose of the bootstrap program in a computer system?
Model answer
The bootstrap program checks the hardware components and then locates and loads the main operating system from a storage device (e.g., hard disk, USB).
Explanation
The bootstrap program initializes hardware verification and then transfers control to a more substantial operating system, as described in the transcript.
- 2
What is GRUB and what functionality does it provide?
Model answer
GRUB is a bootstrap loader that allows the user to choose between multiple installed operating systems at startup.
Explanation
GRUB extends the bootstrap concept by presenting a menu of operating systems, enabling multi-boot configurations.
- 3
List at least four of the five major services typically provided by an operating system.
Model answer
File system management, I/O system management, user interface, memory management, and secondary storage management.
Explanation
These services cover core OS functionalities like handling files, devices, user interaction, memory allocation, and storage.
- 4
Explain the difference between a monolithic operating system and a layered operating system in terms of speed and flexibility.
Model answer
A monolithic OS is faster because all components are in one place but harder to extend; a layered OS is more flexible but slower due to communication overhead between layers.
Explanation
Monolithic systems have all services in one block, while layered systems separate them, trading off speed for modularity.
- 5
What is a system call and how does it relate to an API?
Model answer
A system call is an API that programs use to request services from the operating system, such as creating processes or accessing hardware.
Explanation
System calls provide a controlled interface for user programs to interact with the OS kernel.
- 6
Give an example of a system program and explain its purpose.
Model answer
The task manager is a system program that helps users monitor and manage running processes and system resources.
Explanation
System programs assist in system administration and maintenance, not direct user work.
- 7
Why is the command interpreter (shell) typically kept separate from the kernel?
Model answer
It allows different interfaces (e.g., GUI, command line) to run on the same system, providing flexibility.
Explanation
The shell is a user-facing program that can be replaced or customized without affecting the kernel.
- 8
Define a process and list at least three components that make up its state.
Model answer
A process is a program in execution. Its state includes the program counter, registers (e.g., accumulator), stack, heap, and data section.
Explanation
The process state comprises all information needed to resume execution, as stored in the PCB.
- 9
What are the five states in the process state diagram?
Model answer
New, ready, running, waiting, and terminated.
Explanation
These states represent the lifecycle of a process as it moves through the system.
- 10
What information is stored in a Process Control Block (PCB)?
Model answer
The PCB stores process state, program counter, CPU registers, memory limits, and other process-specific data.
Explanation
The PCB is used by the OS to manage and switch between processes.
- 11
What is context switching and why does it introduce overhead?
Model answer
Context switching is the process of saving the state of a running process and loading the state of the next process. It introduces overhead because the CPU spends time saving and loading PCBs instead of executing user instructions.
Explanation
The overhead is the idle time during the switch, which is necessary for multitasking.
- 12
What is the difference between a CPU-bound process and an I/O-bound process?
Model answer
A CPU-bound process spends more time computing, while an I/O-bound process spends more time waiting for I/O operations.
Explanation
A mix of both types improves overall system utilization.
- 13
What are the three types of schedulers mentioned in the lecture?
Model answer
Short-term, long-term, and medium-term schedulers.
Explanation
Short-term selects the next process from the ready queue (milliseconds), long-term manages which processes are admitted (minutes), and medium-term handles swapping.
- 14
What does the fork() system call do in process creation?
Model answer
fork() creates a new process (child) that is a copy of the parent process.
Explanation
The child process can then use exec() to load a different program.
- 15
What is cascading termination?
Model answer
Cascading termination occurs when a parent process is terminated, and all its child processes are also terminated by the OS.
Explanation
This prevents orphan processes from lingering without a parent.
- 16
What is a zombie process and how does it differ from an orphan process?
Model answer
A zombie process has terminated but still has an entry in the process table (waiting for parent to read its exit status). An orphan process has a parent that terminated before the child, but the child continues running.
Explanation
Zombies consume minimal resources but can accumulate; orphans are usually adopted by the init process.
- 17
How are sockets used for interprocess communication between different computers?
Model answer
A socket uses an IP address to identify the computer and a port number to identify the specific service or process on that computer.
Explanation
Ports allow multiple services (e.g., web, email) to run on the same IP address.
- 18
What is a pipe and what does it mean for a pipe to be unidirectional or bidirectional?
Model answer
A pipe is a communication channel between two processes. Unidirectional pipes allow data to flow in one direction only, while bidirectional pipes allow data to flow both ways.
Explanation
Named pipes persist beyond the processes and use filesystem names.
- 19
What is the difference between big endian and little endian byte ordering?
Model answer
Big endian stores the most significant byte first (at the lowest memory address), while little endian stores the least significant byte first.
Explanation
When communicating between systems with different endianness, data must be converted to ensure correct interpretation.

Ask anything
We've read this whole study set, so questions about it get the best answers.