Generated by DeepSeek V3.2| Darwin (operating system) | |
|---|---|
| Name | Darwin |
| Developer | Apple Inc., Open Source Community |
| Family | Unix-like |
| Source model | Open source |
| Released | November 2000 |
| Latest release version | 22.6.0 |
| Latest release date | 24 July 2023 |
| Kernel type | Hybrid kernel (XNU) |
| Userland | BSD |
| Ui | Command-line interface |
| License | Apple Public Source License (APSL) and other open-source licenses |
| Working state | Current |
| Supported platforms | PowerPC, x86, x86-64, ARM |
Darwin (operating system). Darwin is the core Unix-like operating system that forms the foundational layer for Apple Inc.'s flagship products, including macOS, iOS, iPadOS, tvOS, and watchOS. It is an open-source project that combines a hybrid kernel called XNU, which integrates the Mach microkernel with components from FreeBSD and a C++ API for driver development known as I/O Kit. Initially released in 2000, Darwin provides the critical services for process management, memory management, file system support, and networking upon which Apple's proprietary graphical interfaces and frameworks are built.
The origins of Darwin trace back to Apple Inc.'s acquisition of NeXT in 1997, which brought Steve Jobs back to the company and with him the NeXTSTEP operating system. NeXTSTEP's core, based on the Mach kernel and BSD code, became the starting point for the development of Rhapsody, Apple's planned next-generation OS. As the project evolved into what would become macOS, the underlying core was spun off as the open-source Darwin project, with its first official release occurring in November 2000. Key figures in its development included Avie Tevanian, a former NeXT engineer and Apple's former head of software engineering, and the ongoing contributions from the Open Source Community. Over the years, Darwin has been updated in lockstep with Apple's commercial operating systems, with its version numbers aligning with those of macOS, such as Darwin 22 corresponding to macOS Ventura.
Darwin is architected as a hybrid kernel system, primarily through its XNU kernel. XNU stands for "X is Not Unix" and combines the capabilities of the CMU-developed Mach microkernel, responsible for low-level tasks like virtual memory and inter-process communication, with the FreeBSD codebase, which provides the POSIX-compliant API, process model, and networking stack. This design aims to provide the performance and robustness of a monolithic kernel with the flexibility of a microkernel. The system supports multiple processor architectures, having transitioned from PowerPC to x86 and later to x86-64 and ARM for Apple silicon. Security features like mandatory access control, implemented via the TrustedBSD project's MAC Framework, are integral to its architecture.
The Darwin system comprises several major subsystems that provide its core functionality. The I/O Kit is a driver framework written in a subset of C++ that facilitates the development of device drivers for macOS and other Apple operating systems. For file systems, it supports HFS+, APFS, and numerous others like FAT32 and NTFS via a virtual file system layer. Networking is built upon a FreeBSD-derived TCP/IP stack, supporting protocols like IPv4 and IPv6. The launchd daemon, introduced in Darwin 8.0 (corresponding to macOS Tiger), manages system startup and services. Other critical components include the BSD libc library, the Grand Central Dispatch concurrency framework, and the Xcode command-line tools for development.
Darwin's primary use is as the invisible core for Apple's commercial operating systems, including macOS, iOS, iPadOS, tvOS, and watchOS. However, several independent projects have created operating systems from the open-source Darwin code. The most notable was OpenDarwin, a community-led distribution that ceased development in 2006. Other derivatives include PureDarwin, which aims to create a bootable system from the open-source components, and DarwinPorts (now MacPorts), a package management system for installing software on macOS and Darwin. While not a derivative, the Chrome OS project has utilized code from Darwin's launchd for its Upstart init system. Apple itself does not distribute Darwin as a standalone end-user product.
Darwin is released under the Apple Public Source License (APSL), a free software license approved by the Free Software Foundation and recognized as an open-source license by the Open Source Initiative. However, not all components of Darwin are under the APSL; some utilities and kernel elements are covered by other licenses like the BSD licenses or the GNU General Public License (GPL). The open-source nature of Darwin has allowed developers to study the core of Apple's operating systems and contribute to certain components, though the overall development direction is tightly controlled by Apple. The source code is made available through Apple's open-source portals, with major releases corresponding to new versions of macOS.
Category:Unix-like operating systems Category:Apple Inc. software Category:Open-source operating systems Category:Free software operating systems