Skip to content
We areTOP 1%

What is the difference between a monolithic kernel and a microkernel?

MediumConceptOS Basics & System Calls
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

A monolithic kernel runs all core OS services (scheduling, memory management, file systems, device drivers and networking) in kernel space as one large program. A microkernel keeps only the minimum in kernel space, namely basic scheduling, memory management and inter-process communication (IPC), and runs file systems, drivers and other services as separate user-space processes that exchange messages.

  • Monolithic (Linux, traditional Unix): fast, because services call each other directly as functions, but less modular, and a bug in one driver can crash the whole system. Linux adds flexibility with loadable kernel modules.
  • Microkernel (QNX, Minix 3, seL4): modular and robust, since a crashed driver can be restarted without a reboot, but each request needs several messages and mode switches, which adds overhead.
  • Hybrid kernels such as Windows NT and macOS XNU combine ideas from both.

Example: reading a file. Monolithic: application → system call → file-system code → disk driver, all inside the kernel, then return. Microkernel: application → kernel → message to the file-server process → message to the disk-driver process → replies travel back through the kernel. Analogy: one large shared office versus a reception desk that forwards each request to separate offices.

More in OS Basics & System Calls

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account