XNU
More info
- Creator
- NeXT, Apple
- Owner
- Apple
- Type
- Kernel
- License
- APSL 2.0
- Source
- github.com
The kernel under macOS and iOS — Mach and FreeBSD welded into a hybrid, with a name that denies what it is.
XNU stands for "X is Not Unix", which became a joke once macOS was certified as Unix. The kernel comes from NeXTSTEP and has three layers: Mach for threads, memory and messaging; a BSD layer, largely borrowed from FreeBSD, for processes, networking and POSIX; and I/O Kit, a driver framework written in a restricted subset of C++.
Unlike a pure microkernel, everything runs in one address space, avoiding the expensive context switches that made Mach notorious for being slow. The source is published as part of Darwin under the APSL. The same kernel now drives macOS, iOS and the rest of Apple's platforms.