- Asked 2/19
- 2073 Bhadra · 3 marks
- 2076 Baisakh · 3 marks
Kernel and its types
Short answer
A kernel is the OS core managing CPU, memory, devices, and system calls. Monolithic kernels (Linux) run all services in kernel space for speed but risk crashes. Microkernels (QNX) keep only scheduling, IPC, and basic memory in kernel, running drivers/filesystems in user space for reliability and modularity.
Define kernel and explain its types (differentiate between monolithic kernel and micro kernel).
The kernel is the central part of an operating system. It runs in privileged mode, manages the CPU (scheduling), memory, devices and system calls, and provides the interface between applications and hardware.
Types of kernel
- Monolithic kernel: the whole OS (scheduler, memory manager, file system, device drivers, IPC) runs as one large program in kernel space. Examples: Linux, UNIX.
- Microkernel: only the minimum services (basic scheduling, IPC, low-level memory management) stay in the kernel. File systems, drivers and others run as separate servers in user space. Examples: QNX, MINIX, Mach.
- Hybrid kernel: a mix of both (Windows NT, macOS).
- Exokernel / nanokernel are other minimal designs.
| Point | Monolithic kernel | Microkernel |
|---|---|---|
| Size | Large | Small |
| Services in kernel space | All | Only essential (IPC, scheduling, basic memory) |
| Speed | Faster (direct function calls) | Slower (message passing between servers) |
| Reliability | A faulty driver can crash the entire system | More reliable; a failed server does not crash the kernel |
| Modification | Harder; kernel must be rebuilt | Easy; add/replace servers |
| Security | Lower | Higher |
| Examples | Linux, UNIX | QNX, MINIX |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- User-level versus kernel-level threads · Embedded System, chapter 6 · asked 2×
- Monolithic vs micro-kernel structure · Operating System, chapter 1
- Microkernel vs monolithic kernel · Distributed System, chapter 3