Operating Systems Overview
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary role of an operating system?
20 questions
- 1
What is the primary role of an operating system?
Model answer
The operating system acts as an intermediary between the user and the hardware, managing resources and executing applications.
Explanation
It allocates resources like CPU time, memory, and I/O devices, and controls program execution to ensure efficient and safe operation.
- 2
Define the kernel of an operating system.
Model answer
The kernel is the core program of the operating system that manages hardware resources and provides services to other software.
Explanation
It is the lowest-level component responsible for process management, memory management, device drivers, and system calls. In Linux, the kernel is the essential part, with other utilities from external sources.
- 3
Explain the bootstrap process in a computer system.
Model answer
The bootstrap is a small program stored in ROM that checks hardware and loads the operating system into memory when the computer starts.
Explanation
It runs automatically at power-on, verifying hardware components, then transfers control to the OS loader from a storage device like a hard disk or SSD.
- 4
What is an interrupt and why is it important?
Model answer
An interrupt is a signal that pauses the current CPU instruction to handle an urgent event, such as I/O completion, allowing the OS to respond quickly and switch between tasks.
Explanation
Since the CPU can only execute one instruction at a time, interrupts enable multitasking and efficient I/O by notifying the CPU of events without constant polling.
- 5
Describe the von Neumann architecture.
Model answer
The von Neumann architecture uses a stored-program concept where instructions and data are stored in the same memory, and the CPU fetches and executes instructions sequentially.
Explanation
This design is the basis for most modern computers, involving a fetch-execute cycle: the CPU retrieves an instruction from memory, decodes it, and executes it using the ALU and registers.
- 6
What is the fetch-execute cycle?
Model answer
The fetch-execute cycle is the process where the CPU retrieves an instruction from memory (fetch), decodes what operation to perform, and executes it using the ALU or registers.
Explanation
The program counter (PC) holds the address of the next instruction, which is fetched into the instruction register; the control unit then decodes and executes the instruction, updating the PC.
- 7
List two benefits of using multiprocessor systems.
Model answer
Increased throughput and improved reliability.
Explanation
Multiple processors can execute more instructions per time unit (throughput), and if one fails, the system can continue with others (reliability). Economy of scale is another benefit.
- 8
What is a clustered system?
Model answer
A clustered system consists of multiple independent computers connected via a fast network, sharing storage and working together on tasks for increased performance and reliability.
Explanation
Each computer runs its own OS, but they collaborate on processing, e.g., rendering scenes in movie production. Shared storage allows data access from any node.
- 9
Differentiate between batch and time-sharing systems.
Model answer
Batch systems run jobs without user interaction, scheduled during low-usage periods, while time-sharing systems interact with multiple users by quickly switching CPU time among them.
Explanation
Batch processing is non-interactive and efficient for large jobs; time-sharing gives each user a small slice of CPU time, creating the illusion of simultaneous execution.
- 10
Explain the concept of time-sharing.
Model answer
Time-sharing divides CPU time among multiple users or processes, switching rapidly so each appears to run simultaneously, enabling interactive use.
Explanation
The OS allocates a short time slice to each process, then switches to another, ensuring responsive interaction for all users, as in online conferencing systems like Teams.
- 11
How does the OS keep multiple processes separate in memory?
Model answer
The OS uses memory management techniques such as base and limit registers or paging to allocate distinct address spaces and prevent one process from accessing another's data.
Explanation
Protection is enforced by hardware checks during memory access; each process is confined to its own region, ensuring security and stability.
- 12
What is the purpose of caching in a computer system?
Model answer
Caching stores frequently accessed data in a faster storage medium to reduce access time, making the system appear faster than the underlying slow device.
Explanation
For example, CPU caches hold copies of main memory data; when the CPU needs data, it first checks the cache, avoiding slow main memory access.
- 13
Describe Direct Memory Access (DMA).
Model answer
DMA is a feature that allows I/O devices to transfer data directly to/from memory without involving the CPU, freeing the CPU for other tasks.
Explanation
A DMA controller handles the transfer, interrupt the CPU only when complete, improving throughput for large data movements, such as from disk to memory.
- 14
Compare SSD and HDD in terms of speed and cost.
Model answer
SSDs are faster but more expensive per gigabyte than HDDs.
Explanation
SSDs use flash memory with no moving parts, offering lower latency and higher random I/O, while HDDs are slower due to mechanical seek time but cheaper for bulk storage.
- 15
What is a device driver?
Model answer
A device driver is a program that allows the OS to communicate with a specific hardware device, translating OS commands into device-specific instructions.
Explanation
When a new device is installed, its driver provides the OS with the necessary interface to control it, such as telling a printer how to print a page.
- 16
Explain the client-server model in networking.
Model answer
In the client-server model, clients request services (e.g., file access) from a central server that provides resources and manages access.
Explanation
The server listens for requests and responds, while clients initiate communication. This model is common in web services, email, and database systems.
- 17
What is virtualization in operating systems?
Model answer
Virtualization allows multiple operating systems to run simultaneously on a single physical machine, sharing hardware resources via a hypervisor.
Explanation
It enables running different OS environments on one computer, such as Linux on Windows, or consolidating old legacy systems into virtual machines for cost savings.
- 18
What characterizes a real-time operating system?
Model answer
A real-time OS guarantees that critical tasks complete within strict time deadlines, essential for applications like car brakes or nuclear power plant control.
Explanation
Deterministic scheduling and minimal latency ensure that events are processed in time; failure to meet deadlines can lead to catastrophic failures.
- 19
What is the Little Man Computer (LMC) used for in this module?
Model answer
The LMC is a simulator that demonstrates low-level programming using assembler instructions, illustrating the fetch-execute cycle and how the CPU processes instructions.
Explanation
Students write simple programs (e.g., adding numbers) in LMC assembler to understand the many instructions required for even basic tasks, highlighting the OS's complexity.
- 20
Why does the lecture recommend buying an older edition of the textbook?
Model answer
Older editions are much cheaper and contain the same core operating system concepts; newer editions only differ in example operating systems, which are not needed.
Explanation
The underlying principles remain stable over time, so a penny-copy of a previous edition covers all tested material, making it affordable.

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