🎓 BookMCQ
← Back to 2. Operating System Structure

📝 Operating System Structures (29 MCQs)

Architectural Models for Organising Kernel Components

Operating system structures describe how kernel components and supporting services are arranged to provide system functionality. Architectural models determine the placement of process management, memory management, file systems, drivers, and communication facilities, as well as their interaction paths. Common approaches include monolithic, layered, microkernel, modular, and hybrid designs, each offering different balances between performance, component isolation, flexibility, and implementation complexity.

Why Kernel Components Require Defined Organisation

An operating system contains many interacting services that must coordinate without creating excessive dependencies or uncontrolled access. Poor organisation makes development, maintenance, testing, and fault isolation difficult. Structural approaches address these challenges by defining component boundaries and communication methods. However, stronger separation can introduce message-passing or interface overhead, while tighter integration can increase the consequences of component failures.

Monolithic, Layered, Microkernel, and Modular Arrangements

Monolithic kernels provide many services within one privileged kernel address space. Layered systems arrange functions into levels with defined dependencies. Microkernels retain a small privileged core and move many services into user-space servers. Modular kernels support dynamically loadable components, while hybrid structures combine characteristics from several designs to meet practical performance and organisational requirements.

Comparing File Request Paths in Different Architectures

Suppose an application requests a file read. In a monolithic design, the system-call handler can invoke file-system and device-driver routines within kernel space. In a microkernel design, file-system functionality may reside in a user-space server reached through interprocess communication. Both arrangements can complete the request, but their communication paths and fault boundaries differ.

Performance, Fault Isolation, and Structural Trade-offs

Monolithic arrangements can reduce internal communication overhead, but failures in privileged components can affect the entire system. Microkernels offer stronger isolation for separated services, although message passing and additional context switches may increase latency. Layered designs improve conceptual organisation, while modules support extensibility. Real operating systems frequently combine structural techniques rather than following one textbook model completely.

Misconceptions About Kernel Architectural Categories

'Every monolithic kernel contains no modular components' is incorrect because monolithic kernels may support loadable modules. 'A microkernel performs all operating system services outside the kernel' is incorrect because essential scheduling and low-level memory functions remain privileged. 'Layered architecture guarantees faster execution' is incorrect because additional boundaries can introduce overhead.

Exam Focus: Kernel Structure Comparisons and Service Placement

Compare monolithic, layered, microkernel, modular, and hybrid architectures by component placement, communication, performance, and fault isolation. Trace a service request and identify which components execute in kernel or user space. Questions may examine message passing, module loading, dependency restrictions, advantages of separation, and the limitations of simplified architectural classifications.

Key Terms of Operating System Structures

  • Monolithic kernel - Large integrated privileged kernel.
  • Microkernel - Kernel containing minimal core services.
  • Layered system - Components arranged into levels.
  • Loadable module - Dynamically added kernel component.
  • Hybrid structure - Combination of architectural approaches.
  • Fault isolation - Limiting failures between components.
10
Easy
10
Medium
9
Hard

📝 All Operating System Structures MCQs

Q1. A file server places process management, memory management, file systems, and device drivers inside one large privileged kernel. Which operating-system structure does this describe?

A.Layered structure
B.Microkernel structure
C.Monolithic structure ✅
D.Client-server structure
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A monolithic kernel provides many core operating-system services within one privileged kernel address space. Components can call one another directly, which can improve performance but increases coupling and the consequences of kernel faults.

Q2. An operating system is organized into levels, where each level uses services from the level below and provides services to the level above. Which structure is being used?

A.Layered structure ✅
B.Monolithic structure
C.Exokernel structure
D.Single-user structure
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A layered design divides the operating system into levels with defined dependencies. Each layer relies on lower-level services and offers operations to higher layers, making responsibilities easier to understand, test, and maintain.

Q3. A research operating system keeps only essential functions such as low-level memory management, scheduling, and interprocess communication in the kernel. Other services run as user-space servers. Which structure is this?

A.Monolithic kernel
B.Microkernel ✅
C.Single-layer kernel
D.Static batch structure
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A microkernel minimizes the functionality running in privileged mode and moves many services into user space. This reduces the trusted kernel core and improves isolation, although communication between servers can add overhead.

Q4. A kernel supports independent components for networking, file systems, and device drivers, each connected through defined interfaces. Which structure best matches this design?

A.Layered-only structure
B.Monolithic-only structure
C.Modular kernel ✅
D.Batch-processing structure
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A modular kernel organizes functionality into components that communicate through defined interfaces. Modules can often be developed and maintained separately, providing flexibility without requiring every service to run as an isolated user-space server.

Q5. A system administrator adds a storage driver to a running kernel without rebuilding the entire operating system. Which mechanism makes this possible?

A.Demand paging
B.Loadable kernel modules ✅
C.Round-robin scheduling
D.File indexing
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Loadable kernel modules can be inserted into or removed from a running kernel when supported. They extend functionality such as device support while avoiding a complete kernel rebuild, although loaded code still executes with kernel privileges.

Q6. A desktop operating system combines a modular kernel with selected microkernel ideas and several services that remain in kernel space. Which term commonly describes this arrangement?

A.Hybrid structure ✅
B.Pure layered structure
C.Pure microkernel structure
D.Single-task structure
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A hybrid structure combines ideas from multiple architectural approaches. It may retain performance-sensitive services in kernel space while using modular organization or selected microkernel concepts to balance speed, flexibility, and fault isolation.

Q7. A microkernel-based system runs its file system as a separate user-space server. An application requests file data. How does the request typically reach the file-system service?

A.By directly executing the server's privileged instructions
B.Through message passing or another interprocess communication mechanism ✅
C.By rewriting the application's page table
D.By bypassing the kernel entirely
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: In a microkernel design, user processes commonly communicate with service processes through message passing. The kernel mediates communication and basic protection, while the file-system server performs the requested file operation in user space.

Q8. A layered operating system places the device-control layer beneath the file-system layer. What is the main reason for this ordering?

A.The file system should provide physical interrupt instructions to hardware
B.Higher layers should depend on lower-level abstractions for the services they require ✅
C.Every layer must execute in a separate processor
D.The device layer must know every application command
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Lower layers provide foundational operations such as device access, while higher layers build abstractions using those services. This direction of dependency limits knowledge of higher-level policies inside low-level components and supports cleaner interfaces.

Q9. A kernel developer wants to add network functionality without changing the memory manager or scheduler. Which structural property most directly supports this goal?

A.A single undivided code path
B.Strict dependence on application-specific code
C.Modular components with well-defined interfaces ✅
D.Removing all boundaries between kernel subsystems
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Modularity separates responsibilities behind defined interfaces, allowing a networking component to evolve without requiring unrelated subsystems to change. The interfaces must remain compatible, and shared data structures still require careful coordination.

Q10. A virtual-machine monitor allows several guest operating systems to run on one physical computer while keeping their execution environments isolated. Which structural idea is central to this arrangement?

A.Virtualization through a virtual machine monitor ✅
B.A single shared user shell
C.A flat directory structure
D.A non-preemptive CPU scheduler
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A virtual machine monitor presents virtual hardware environments and controls access to physical resources. Each guest operating system behaves as though it owns a machine, while the monitor manages isolation and resource sharing.

Q11. A developer argues that a monolithic kernel is always slower than a microkernel because it contains more code. Which correction is most accurate?

A.Kernel size alone does not determine performance; direct in-kernel calls can avoid some interprocess communication overhead ✅
B.Microkernels cannot execute privileged instructions
C.Monolithic kernels always run every service in user mode
D.Performance is determined only by the number of system calls
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Performance depends on communication paths, scheduling, data movement, and implementation quality rather than code size alone. Monolithic designs can use direct procedure calls between kernel components, while microkernel servers may incur message-passing overhead.

Q12. A device driver crashes inside a monolithic kernel and corrupts kernel memory. Why can the entire system become unstable?

A.The driver runs in the same privileged address space as core kernel components ✅
B.The driver is automatically isolated in a separate virtual machine
C.User applications own the kernel's page tables
D.The file system converts the crash into a normal message
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Kernel components in a monolithic design commonly share privileged memory and execution authority. A faulty driver can therefore overwrite critical data or execute invalid instructions, potentially crashing the whole system rather than only the driver.

Q13. A microkernel system experiences additional context switches when an application requests file data from a user-space file server. What architectural trade-off does this illustrate?

A.Stronger isolation can introduce communication and scheduling overhead ✅
B.User-space servers eliminate all message passing
C.Moving services out of the kernel always reduces latency
D.Microkernels require every file request to access the disk directly
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Running services in separate user-space processes strengthens isolation and can improve fault containment. Requests may require message transfers and additional scheduling transitions, however, creating overhead that must be balanced against reliability benefits.

Q14. A layered design requires each layer to use only the layer immediately below it. A new security service needs information provided by a much lower memory-management layer. What is the likely design concern?

A.The processor cannot support multiple layers
B.Strict layering may require added interfaces or carefully controlled access across layers ✅
C.The security service must become a device driver
D.The memory manager must run as an application
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Strict layer boundaries simplify dependencies but can make cross-layer services awkward. Designers may add an interface through intermediate layers or revise the layering, while avoiding uncontrolled access that would weaken modularity.

Q15. A kernel module exports a function whose interface changes between releases. Several third-party modules depend on the old version. What is the most likely consequence?

A.All modules continue working because they share kernel memory
B.The kernel automatically translates every old call
C.Dependent modules may fail to load or behave incorrectly until updated ✅
D.The change affects only user-interface colors
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Kernel modules depend on compatible interfaces and data structures. Changing an exported function can break modules built against the previous interface, requiring recompilation, adaptation, or a compatibility mechanism before they operate correctly.

Q16. A system uses a microkernel and separate device-driver servers. One driver fails, but the kernel and unrelated services remain operational. Which architectural benefit is demonstrated?

A.Fault isolation ✅
B.Internal fragmentation
C.External scheduling
D.Direct hardware coupling
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Separating drivers into protected processes can limit the effects of a driver failure. The affected service may be restarted without necessarily bringing down the kernel or unrelated servers, improving system resilience when recovery is supported.

Q17. A layered system has five layers. A request begins at layer 5, and each layer passes it down exactly one level until layer 1 performs the operation. How many inter-layer transitions occur before layer 1 receives the request?

A.3
B.4 ✅
C.5
D.6
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The request travels from layer 5 to 4, then 3, then 2, and finally 1. That path contains four transitions; the number of layers visited is five, but transitions are one fewer.

Q18. Measured request overhead for three designs is: Monolithic = 2 ms ; Microkernel = 5 ms ; Hybrid = 3 ms. Which design has the lowest measured overhead in this workload?

A.Monolithic ✅
B.Microkernel
C.Hybrid
D.All are equal
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The measured values are 2 milliseconds for monolithic, 5 for microkernel, and 3 for hybrid. The monolithic design has the lowest overhead in this particular workload, although other workloads may produce different results.

Q19. A student claims that a modular kernel automatically provides the same fault isolation as a microkernel because each driver is a separate module. What is the flaw?

A.Modules in a conventional modular kernel may still execute in privileged kernel space and share its failure domain ✅
B.A modular kernel cannot contain device drivers
C.A microkernel places every service in one shared kernel address space
D.Separate source files guarantee memory protection
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Modular organization separates code into components but does not necessarily create privilege or address-space boundaries. Kernel modules commonly execute with kernel privileges, so a defective module can still damage the whole kernel.

Q20. A microkernel server receives a request, sends a reply, and the client resumes. The file server performs the operation without entering kernel mode for its entire execution. Which principle enables this arrangement?

A.All server code executes as privileged kernel code
B.User-space servers provide services through protected interprocess communication ✅
C.The client directly modifies the server's private memory
D.Message passing removes the need for access control
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A microkernel uses protected interprocess communication to let user-space servers provide operating-system services. The kernel mediates message transfer and protection, while the server executes with user-level privileges rather than unrestricted kernel authority.

Q21. A team is choosing between a monolithic and microkernel design for a safety-critical embedded controller. The controller must contain failures in noncritical services. Which consideration should carry the most weight?

A.Minimizing the number of source files
B.Maximizing direct calls between every subsystem
C.Fault containment and recovery boundaries, along with timing costs ✅
D.Ensuring all services share the same writable address space
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: A safety-critical design must limit how far a component failure can propagate and provide controlled recovery. A microkernel can strengthen isolation, but its communication and scheduling costs must also satisfy real-time constraints.

Q22. A layered operating system is redesigned so that the file-system layer can call any function in the scheduler, memory manager, or device layer directly. What is the most likely long-term effect?

A.Layer dependencies become less constrained, increasing coupling and making changes harder to reason about ✅
B.The system becomes automatically more secure
C.All kernel calls become message-passing operations
D.The number of privilege levels must become zero
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Allowing unrestricted calls across layers weakens the dependency structure that layering is intended to provide. Components become more tightly coupled, making testing, maintenance, and changes to internal interfaces more difficult.

Q23. A system has five services with measured failure rates per million hours: File server = 8 ; Network server = 5 ; Device server = 12 ; Memory service = 2 ; Name service = 3. Which service has the highest observed failure rate?

A.File server
B.Network server
C.Device server ✅
D.Memory service
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The device server has 12 failures per million hours, exceeding the file server's 8 and all other listed values. Failure-rate comparisons help prioritize reliability work, although they do not alone identify the cause.

Q24. A microkernel system transfers a request and a 1 MiB data buffer between a client and a file server by copying the entire buffer twice. Which optimization could reduce this communication cost while preserving controlled sharing?

A.Move all user applications into kernel mode
B.Use a safe shared-memory region with synchronization and access control ✅
C.Disable virtual memory for the server
D.Repeat the two copies using smaller messages without changing total data movement
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A controlled shared-memory region can reduce repeated copying by allowing both processes to access shared data. Synchronization and access permissions remain essential to prevent races, unauthorized access, and corruption of shared contents.

Q25. A hybrid operating system keeps scheduling and low-level memory management in the kernel but runs some network services in user space. What is the primary architectural advantage?

A.It combines selected performance-sensitive kernel services with isolation for services kept outside the kernel ✅
B.It guarantees that no user-space service can fail
C.It removes all communication between components
D.It forces every driver to run as a separate virtual machine
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A hybrid design can keep frequently used or performance-sensitive mechanisms in privileged space while isolating selected services. This balances direct kernel execution with some modularity and fault containment, though boundaries must be chosen carefully.

Q26. An engineer compares request latency under increasing message sizes: 1 KB = 1.2 ms ; 2 KB = 1.4 ms ; 4 KB = 1.8 ms ; 8 KB = 2.6 ms ; 16 KB = 4.2 ms. What trend is most strongly indicated?

A.Latency decreases as message size increases
B.Latency remains constant
C.Latency increases as message size increases, with each doubling adding progressively more time ✅
D.Latency changes only at 16 KB
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Latency rises from 1.2 to 4.2 milliseconds as message size grows. The increments are 0.2, 0.4, 0.8, and 1.6 milliseconds, indicating increasing transfer or processing cost with larger messages.

Q27. A student says a system with loadable kernel modules is a microkernel because drivers can be loaded independently. Which correction is best?

A.Dynamic loading is a modularity feature and does not by itself determine whether drivers execute in user or kernel space ✅
B.Every loadable module must run as a separate user process
C.A microkernel cannot support dynamically loaded services
D.The ability to load modules proves that all services use message passing
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Loadable modules describe how kernel functionality is added or removed, not necessarily where that functionality executes. A modular kernel can load drivers into privileged kernel space without adopting microkernel protection boundaries.

Q28. A file server in a microkernel system is restarted after a crash. The kernel remains active, but clients must reconnect and recover unfinished requests. Which statement best describes the limitation of fault isolation?

A.Fault isolation prevents every request from being lost
B.Restarting a server automatically restores all its application state
C.A service can fail independently, but clients may still need recovery logic for interrupted operations ✅
D.Microkernels guarantee that servers never crash
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Fault isolation can protect the kernel and unrelated services from a server crash, but it cannot automatically reconstruct every in-progress operation. Clients and servers need protocols for reconnection, state recovery, and retry safety.

Q29. A design review compares five structures using these properties: P has direct in-kernel calls and shared kernel failure risk ; Q has minimal kernel services and user-space servers ; R enforces strict abstraction levels ; S supports independently loadable kernel components ; T combines features from several approaches. Which mapping is correct?

A.P microkernel, Q monolithic, R modular, S layered, T virtual machine
B.P monolithic, Q microkernel, R layered, S modular, T hybrid ✅
C.P layered, Q hybrid, R monolithic, S microkernel, T modular
D.P modular, Q layered, R microkernel, S hybrid, T monolithic
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Direct in-kernel calls characterize monolithic design, user-space servers characterize microkernels, ordered abstraction levels characterize layering, and loadable components characterize modularity. Combining architectural approaches produces a hybrid structure.

🔗 Related Topics (MCQs)