Bootstrap Process Explained
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the role of the bootstrap program in a computer?
It checks hardware and then loads the operating system from disk or other storage, transferring control to it.
Or swipe the card
30 cards
What is the role of the bootstrap program in a computer?
It checks hardware and then loads the operating system from disk or other storage, transferring control to it.
What is GRUB?
GRUB is a boot loader that presents a menu to choose between multiple installed operating systems.
Is GRUB only for Linux?
No, GRUB works with any operating system.
Why can't older PCs use GRUB to choose among multiple OSes?
Older PCs had the OS hardcoded to the first part of the hard disk in the bootstrap loader.
List five major services provided by an operating system.
File system management, user interface, I/O system control, memory management, secondary storage management.
Compare monolithic and layered operating systems.
Monolithic: all kernel services in one block, fast but hard to extend. Layered: services in separate layers, flexible but slower due to communication overhead.
What are system calls?
System calls are the API through which user programs request services from the operating system (e.g., creating processes, file I/O).
What are system programs? Give examples.
System programs help manage the system; examples include DIR (list files), CHKDSK (check disk), and Task Manager.
What is the purpose of the command interpreter (shell)?
It accepts commands from the user and passes them to the OS for execution, enabling multiple interfaces (CLI, GUI).
What system call does a Unix shell use to start a new process?
The fork() system call.
Define a process compared to a program.
A process is a program in execution; a program is a static set of instructions on disk.
What are the main components of a process in memory?
Text section (code), data section (global variables), heap (dynamic memory), stack (temporary data like function calls).
List the five process states.
New, Ready, Running, Waiting, Terminated.
Why is a process moved from Running to Waiting?
It is waiting for I/O or an event (e.g., user input, disk read).
Why is a process moved from Running to Ready?
Its time slice expired (preemption) or a higher-priority process needs the CPU.
What is a Process Control Block (PCB)?
A data structure containing process information: program counter, CPU registers, memory limits, state, etc.
Describe context switching.
Saving the state of the current process (PCB) and loading the state of the next process to resume execution.
What is one hardware feature that can reduce context-switch time?
Multiple sets of registers (e.g., multiple register banks) so process states can be stored on the CPU.
What is the difference between short-term and long-term schedulers?
Short-term scheduler selects the next process from ready queue (milliseconds). Long-term scheduler decides which jobs to admit to ready queue (seconds/minutes).
What is the medium-term scheduler used for?
It swaps processes out of memory (to disk) and back, to control memory load.
Why is a mix of CPU-bound and I/O-bound processes beneficial?
I/O-bound processes use little CPU time, so CPU can run CPU-bound processes while I/O occurs, improving overall utilization.
What is a thread?
A thread is a single sequential flow of execution within a process; multiple threads can run concurrently (e.g., on multi-core CPUs).
What are sockets?
They provide a communication endpoint identified by IP address and port number, enabling processes on different machines to exchange data.
What is a port in networking?
A port number identifies a specific service or process on a machine, allowing multiple network services to run on one IP address.
What is a pipe in inter-process communication?
A unidirectional or bidirectional communication channel between two processes on the same machine.
Explain big-endian vs little-endian byte ordering.
Big-endian: most significant byte first. Little-endian: least significant byte first. Systems must agree on order when exchanging data.
What system calls are used to create a new process in Unix?
fork() creates a child process, and exec() loads a new program into that child.
What is cascading termination?
When a process terminates, all its child processes are also terminated.
What is a zombie process?
A child that has terminated but whose parent has not yet called wait() to retrieve its exit status.
What is an orphan process?
A process whose parent has terminated before it; it is then adopted by the init process (or similar).

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