Anonymous user
MacOS: Difference between revisions
Significant corrections and expansions
[unchecked revision] | [unchecked revision] |
m (→Features) |
(Significant corrections and expansions) |
||
Line 1:
{{stub}}
XNU (acronym for "X is Not Unix") is a [[Hybrid Kernel|hybrid kernel]] based on [[wikipedia:Mach (kernel)|Mach]]
macOS is
Darwin is
== Features ==
XNU as a direct derivative from 4.3BSD inherits most of its features, as well as some features imported from other BSD systems such as FreeBSD. Features of BSD heritage include:
* POSIX system calls and the various BSD extensions;
* the [[Wikipedia:Kqueue|kqueue]] event multiplexing system;
* [[wikipedia:Mandatory_access_control|Mandatory Access Control (MAC)]].
Line 23:
* [[wikipedia:AppleScript|AppleScript]];
* notifyd and distnoted, notification ([[Message_Passing|IPC]]) mechanisms;
* [[wikipedia:launchd|launchd]],
* Mach APIs;
* the I/O Kit, an object-oriented drivers framework;
* and more.
Line 42:
== Hybrid Kernel Design ==
macOS is derived from the Mach 2.5 operating system, a derivative of the 4.3BSD UNIX system which rearchitected the lowest levels of the BSD kernel. The primary inspiration for this redesign was the Accent kernel developed at Carnegie-Mellon University. Mach made several adaptations to the Accent model to better support UNIX compatibility.
The core abstractions of the Mach kernel are four: tasks, threads, ports, port sets, messages, and memory objects. The BSD kernel is adapted to use these underlying Mach abstractions to provide a complete higher-level BSD UNIX system.
A later version of Mach, version 3.0, was able to detach the new low-level abstraction layer from the BSD kernel, yielding a [[Microkernel]], where the BSD kernel was replaced with userland servers carved out from the BSD kernel code. XNU, however, was forked from Mach 2.5, which had not yet done so. While some improvements were imported from Mach 3.0, Apple opted not to separate the BSD kernel into userland servers. Thus XNU represents the [[Hybrid Kernel]] approach.
== See Also ==
|