---
title: "Short note: Monolithic and microkernel"
subject: "Distributed System"
chapter: 3
key: "semester_7/distributed_system:monolithic-microkernel-note"
source: https://www.bctengineer.com/q/semester_7/distributed_system/monolithic-microkernel-note
site: BCT Engineering
---

# Short note: Monolithic and microkernel

Distributed System · Chapter 3: Operating System Support

- Asked in: 2076 Asoj; 2072 Kartik, 4 marks; 2071 Shrawan, 4 marks; Model question (asked 4 times)
- Video: [microkernel Vs monolithic kernel [ 6 differences EXPLAINED]](https://www.youtube.com/watch?v=S-zxoWY5u6s) — Techdose
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_7/distributed_system/monolithic-microkernel-note
- Whole chapter: https://www.bctengineer.com/md/semester_7/distributed_system/chapter-3

## Question

Write a short note on monolithic and microkernel architectures of an operating system.

## Short answer

A monolithic kernel runs all OS services in kernel mode via direct calls, fast but large and prone to crashes. A microkernel keeps only IPC, scheduling, and basic memory management in kernel, running other services as user-level servers via message passing; it is modular, reliable, and suits distributed systems, though slower.

## Answer

The kernel is the core of an operating system. Its structure strongly affects a distributed OS.

#### Monolithic kernel
The whole OS (process management, memory management, file system, device drivers, networking) runs as one large program in kernel mode. The parts call each other directly. It is fast because there is no message overhead, but it is large, hard to maintain, hard to extend, and an error in a driver can crash the whole system. Examples: traditional UNIX, Linux.

#### Microkernel
Only the essential mechanisms (low level address space management, thread scheduling, inter-process communication) remain in the kernel. All other services (file server, name server, network server, device drivers) run as ordinary user-level server processes, and clients call them through message passing.

```text
 User space:  [App] [File server] [Net server] [Driver]
                  \      |            |         /
 Kernel:        +------ Microkernel (IPC, MM, sched) ------+
 Hardware
```

It is modular, small, easy to extend and port, more reliable and secure, and suits a distributed system, since services may run on any machine transparently. Its weakness is slower performance from message passing and context switches. Examples: Mach, Amoeba, Chorus, QNX.

| Point | Monolithic kernel | Microkernel |
|---|---|---|
| Structure | All OS services (file system, memory, scheduling, drivers, networking) in one large kernel in kernel space | Only minimum functions (IPC, basic scheduling, low level memory, interrupts) in kernel |
| Other services | Part of kernel | Run as user-level servers |
| Communication | Direct procedure calls (fast) | Message passing between servers (slower) |
| Size | Large | Small |
| Reliability | A bug in one module can crash the system | A server failure does not crash the kernel |
| Flexibility, extensibility | Hard; needs recompilation | Easy; add/replace servers |
| Examples | UNIX, Linux, MS-DOS | Mach, Amoeba, Chorus, QNX |

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. Which describes a monolithic kernel?
   A. Each service runs on a different machine
   B. Only IPC runs in the kernel
   C. Services run as user-level servers
   D. The whole OS runs in kernel mode as one large program using direct calls
   Answer: D. Fast but large and a driver error can crash the whole system. (Key point: Monolithic)

2. What remains in a microkernel?
   A. File system and device drivers
   B. The whole networking stack
   C. Low level address space management, thread scheduling and inter-process communication
   D. All memory and file services
   Answer: C. Other services run as user-level servers. (Key point: Microkernel contents)

3. What is the main weakness of a microkernel?
   A. Less reliable than monolithic
   B. Slower performance from message passing and context switches
   C. Large size
   D. Cannot be extended
   Answer: B. Clients call servers by messages rather than direct calls. (Key point: Weakness)

## Related in Distributed System

- [DOS; monolithic and microkernel](https://www.bctengineer.com/question.md?key=semester_7%2Fdistributed_system%3Ados-monolithic-microkernel) — Distributed System, chapter 3
- [Microkernel vs monolithic kernel](https://www.bctengineer.com/question.md?key=semester_7%2Fdistributed_system%3Amicrokernel-advantages) — Distributed System, chapter 3
- [Operating system layers](https://www.bctengineer.com/question.md?key=semester_7%2Fdistributed_system%3Aos-layers) — Distributed System, chapter 3

## Related in other subjects

- [System call; monolithic and VM architecture](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Asystem-call-architecture) — Operating System, chapter 1
- [Functions of OS and microkernel](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Aos-functions-microkernel) — Operating System, chapter 1
- [Features of a typical operating system](https://www.bctengineer.com/question.md?key=semester_4%2Fmicroprocessor%3Afeatures-of-operating-system) — Microprocessor, chapter 6, asked 3×
- [Monolithic vs micro-kernel structure](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Amonolithic-vs-microkernel) — Operating System, chapter 1
