- 2071 Magh · 5 marks
- Year not given
Monolithic vs micro-kernel structure
Short answer
Monolithic kernel runs all OS services in kernel mode as a single binary with direct calls; microkernel runs minimal kernel (IPC, scheduling, memory) with services as user-mode servers using message passing. Monolithic is faster but less reliable; microkernel is more reliable, portable, and maintainable but slower.
Differentiate between monolithic and micro-kernel structure of an operating system.
In a monolithic structure the whole OS runs as one large program in kernel mode; every procedure can call any other. In a micro-kernel structure only a very small kernel runs in kernel mode and the remaining services run as user-mode servers that communicate by message passing.
| Basis | Monolithic kernel | Micro-kernel |
|---|---|---|
| Structure | One large binary; all services linked together | Small core plus separate user-space servers |
| Kernel size | Large | Very small |
| Services in kernel mode | Process, memory, file system, drivers, networking | Only IPC, scheduling, low-level memory |
| Communication | Direct procedure calls | Message passing through the kernel |
| Performance | Fast, little overhead | Slower, more mode switches and copying |
| Reliability | A bug in any part (e.g. a driver) can crash the whole OS | Server crash is isolated; kernel survives |
| Security | Large trusted code base | Small trusted code base, easier to verify |
| Maintenance / extension | Difficult; recompile the kernel | Easy; add or replace servers |
| Portability | Harder | Easier (only the small kernel is hardware dependent) |
| Examples | Traditional UNIX, Linux, MS-DOS | Mach, QNX, MINIX 3 |
Monolithic Micro-kernel
+-------------+ +----+ +----+ +----+
| FS Mem Proc | | FS | |Drv | |Net | user
| Drv Net ... | +----+ +----+ +----+
| (all in | +-----------------+
| kernel) | | IPC, sched, mem | kernel
+-------------+ +-----------------+
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Layered vs monolithic OS structure · Operating System, chapter 1
- Extended machine, kernel, system call · Operating System, chapter 1
- System call; monolithic and VM architecture · Operating System, chapter 1
- Device controller vs kernel; DMA · Operating System, chapter 6
- Process vs thread; user and kernel threads · Operating System, chapter 2
- File system layout; i-node vs linked list · Operating System, chapter 5
- Microkernel vs monolithic kernel · Distributed System, chapter 3
- Kernel and its types · Embedded System, chapter 6 · asked 2×
- File system handling of kernel · Embedded System, chapter 6
- Features of a typical operating system · Microprocessor, chapter 6 · asked 3×