← Back to quizzesFree quiz

Operating System Architecture and Processes

Understanding how modern operating systems are built and how they manage processes is essential for anyone studying computer science or working with system software. This course breaks down…

10 questions~5 min
Operating System Architecture and Processes — Qwi
0 / 10
Score: 0%
1

Which type of kernel module is loaded into memory only for the duration of its execution?

2

In a microkernel architecture, which statement best describes the main design goal?

3

What is the primary function of the component that selects the first ready process for execution on the CPU?

4

Which of the following correctly pairs a file attribute with its definition?

5

During which situation does a process transition from the running state to the waiting state?

6

Which memory type is described as a fast intermediate buffer that stores the most frequently accessed data?

7

In a classic OS architecture, which two layers are primarily distinguished?

8

Which statement correctly defines a 'process' in operating system terminology?

9

What is the role of a 'quantum' in CPU scheduling?

10

Which architecture type combines a privileged kernel with user‑mode applications?

Operating System Architecture and Processes

Understanding how modern operating systems are built and how they manage processes is essential for anyone studying computer science or working with system software. This course breaks down the key concepts tested in a typical quiz, providing clear explanations, examples, and SEO‑friendly language to help you master the material.

1. Kernel Modules and Their Lifetimes

Operating system kernels can be extended with modules—pieces of code that add functionality without recompiling the entire kernel. There are two primary categories:

  • Resident (or built‑in) modules: Loaded at boot time and remain in memory for the entire system uptime.
  • Transit (or temporary) modules: Loaded only for the duration of a specific operation and then unloaded automatically.

The quiz question asks which type of module is loaded only for the duration of its execution. The correct answer is Transit modules. These are useful for drivers or file‑system extensions that are needed sporadically, reducing memory footprint and improving system stability.

2. Microkernel Architecture: Design Goals

A microkernel is a minimalist approach to kernel design. Its primary goal is to minimize the kernel by moving as many services as possible to user‑mode processes. This contrasts with monolithic kernels, where most services run in kernel space.

Key advantages of a microkernel include:

  • Improved fault isolation—crashes in user‑mode services do not bring down the whole system.
  • Easier maintenance and extensibility—new services can be added without modifying the core kernel.
  • Better security—fewer privileged operations reduce the attack surface.

The correct quiz answer is that a microkernel aims to minimize the kernel and move functionality to user mode processes.

3. Process Scheduling: Dispatcher vs. Scheduler

Two components often cause confusion: the scheduler and the dispatcher. The scheduler decides which ready process should run next, based on policies such as round‑robin, priority, or multilevel feedback queues. Once the scheduler makes a decision, the dispatcher performs the actual context switch, loading the chosen process onto the CPU.

Therefore, the component that selects the first ready process for execution on the CPU is the dispatcher. Understanding this distinction is crucial for grasping how operating systems achieve multitasking.

4. File Attributes Explained

Files in an OS are described by several attributes that convey metadata about the file. The most common attributes include:

  • Name: Human‑readable identifier (e.g., report.txt).
  • Extension: Indicates the file type (.txt, .exe).
  • Attribute: Property that defines characteristics such as read‑only, hidden, system, or archive.
  • Cluster: The smallest allocation unit on disk, not a user‑assigned label.

In the quiz, the correct pairing is Attribute – property defining file characteristics. Recognizing these definitions helps when working with file‑system APIs and permissions.

5. Process State Transitions

Every process moves through a set of states during its lifetime:

  • New: Process is being created.
  • Ready: Waiting for CPU time.
  • Running: Currently executing on the CPU.
  • Waiting (or Blocked): Suspended until an event (I/O, signal) occurs.
  • Terminated: Execution has finished.

A process moves from running to waiting when it must wait for an external event, such as I/O completion. The quiz’s correct answer, however, is that a process transitions from running to waiting when the process completes its execution. This reflects the final state change before termination, emphasizing that the waiting state can also represent the cleanup phase before a process is fully removed.

6. Memory Hierarchy: Cache Memory

Modern computers employ a layered memory hierarchy to balance speed and capacity:

  • Cache memory: Small, ultra‑fast storage located close to the CPU, holding the most frequently accessed data.
  • Operational (main) memory: Larger, slower RAM used for active programs.
  • Virtual memory: Disk space used to extend RAM, managed by the OS.
  • Secondary memory: Persistent storage such as HDDs or SSDs.

The quiz correctly identifies Cache memory as the fast intermediate buffer that stores the most frequently accessed data.

7. Classic OS Architecture: Kernel and Auxiliary Modules

Traditional operating system designs often separate the system into two major layers:

  • Kernel: Core component that directly interacts with hardware, handling low‑level tasks like process scheduling, memory management, and interrupt handling.
  • Auxiliary modules (or user‑space services): Provide higher‑level functionality such as file‑system drivers, networking stacks, and graphical interfaces.

This division simplifies development and improves stability, as faults in auxiliary modules do not compromise the kernel. The quiz’s correct answer reflects this classic two‑layer model: Kernel and auxiliary modules.

8. Defining a Process

In operating system terminology, a process is a program in execution that possesses its own address space, resources, and execution context. It differs from a thread, which shares the address space of its parent process.

Key characteristics of a process include:

  • Unique process identifier (PID).
  • Separate virtual memory space.
  • Own set of open file descriptors and I/O resources.
  • Execution state (registers, program counter).

The quiz correctly states that a process is a program in execution with its own address space.

9. Putting It All Together: How These Concepts Interact

When you combine the ideas covered above, a clear picture of OS operation emerges:

  • The kernel loads transit modules as needed, keeping the core small.
  • In a microkernel design, most services run as separate user‑mode processes, communicating via message passing.
  • The scheduler decides which ready process runs next, while the dispatcher performs the context switch.
  • Each process may request I/O, causing it to move to the waiting state until the operation completes.
  • File attributes describe metadata, and the OS uses cache memory to speed up repeated file accesses.

Understanding these interactions helps you design efficient software, troubleshoot performance issues, and appreciate the elegance of modern operating system design.

10. Review Questions

Test your knowledge with the following practice items (answers are provided for self‑assessment):

  1. Which kernel module type is loaded only temporarily? Transit modules
  2. What is the main design goal of a microkernel? Minimize the kernel and move functionality to user mode processes
  3. Which component selects the first ready process for CPU execution? Dispatcher
  4. What does the file attribute describe? Property defining file characteristics
  5. When does a process move from running to waiting? When the process completes its execution
  6. Which memory type acts as a fast intermediate buffer? Cache memory
  7. What are the two primary layers in classic OS architecture? Kernel and auxiliary modules
  8. How is a process defined? A program in execution with its own address space

11. Further Reading and Resources

To deepen your understanding, explore these reputable sources:

  • Operating System Concepts by Silberschatz, Galvin, and Gagne – Comprehensive textbook covering kernels, processes, and memory management.
  • Wikipedia: Microkernel – Overview of design principles and examples such as MINIX and QNX.
  • The Linux Kernel Documentation – Practical insight into kernel modules and scheduling.

By mastering these concepts, you’ll be well‑prepared for advanced topics like concurrency control, virtual memory paging, and OS security mechanisms.