This commit is contained in:
Stephen 2018-07-15 17:25:16 +08:00 committed by GitHub
parent 7be0ab1f6e
commit 41d21a4de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ macOS 和 Linux 内核有什么区别
====== ======
Some people might think that there are similarities between the macOS and the Linux kernel because they can handle similar commands and similar software. Some people even think that Apples macOS is based on Linux. The truth is that both kernels have very different histories and features. Today, we will take a look at the difference between macOS and Linux kernels. Some people might think that there are similarities between the macOS and the Linux kernel because they can handle similar commands and similar software. Some people even think that Apples macOS is based on Linux. The truth is that both kernels have very different histories and features. Today, we will take a look at the difference between macOS and Linux kernels.
有些人可能会认为 macOS 和 Linux 内核之间存在相似之处,因为它们可以处理类似的命令和类似的软件。有些人甚至认为苹果公司的 macOS 是基于 Linux 的。事实是,两个内核有着截然不同的历史和特征。今天,我们来看看 macOS 和 Linux 内核之间的区别。 有些人可能会认为 macOS 和 Linux 内核之间存在相似之处,因为它们可以处理类似的命令和类似的软件。有些人甚至认为 Apple 的 macOS 是基于 Linux 的。事实是,两个内核有着截然不同的历史和特征。今天,我们来看看 macOS 和 Linux 内核之间的区别。
![macOS vs Linux][1] ![macOS vs Linux][1]
@ -16,11 +16,11 @@ Some people might think that there are similarities between the macOS and the Li
We will start with the history of the macOS kernel. In 1985, Steve Jobs left Apple due to a falling out with CEO John Sculley and the Apple board of directors. He then founded a new computer company named [NeXT][2]. Jobs wanted to get a new computer (with a new operating system) to market quickly. To save time, the NeXT team used the [Mach kernel][3] from Carnegie Mellon and parts of the BSD code base to created the [NeXTSTEP operating system][4]. We will start with the history of the macOS kernel. In 1985, Steve Jobs left Apple due to a falling out with CEO John Sculley and the Apple board of directors. He then founded a new computer company named [NeXT][2]. Jobs wanted to get a new computer (with a new operating system) to market quickly. To save time, the NeXT team used the [Mach kernel][3] from Carnegie Mellon and parts of the BSD code base to created the [NeXTSTEP operating system][4].
我们将从 macOS 内核的历史开始。1985年,由于与首席执行官约翰斯卡利和董事会不和,史蒂夫乔布斯离开了 Apple。然后他成立了一家名为 [NeXT][2] 的新电脑公司。乔布斯希望将一款新计算机同时带有新操作系统快速推向市场。为了节省时间NeXT 团队使用了卡耐基梅隆大学的 [Mach 内核][3] 和部分 BSD 代码库来创建 [NeXTSTEP 操作系统][4]。 我们将从 macOS 内核的历史开始。1985 年,由于与首席执行官 John Sculley 和董事会不和Steve Jobs 离开了 Apple。然后他成立了一家名为 [NeXT][2] 的新电脑公司。Jobs 希望将一款新计算机同时带有新操作系统快速推向市场。为了节省时间NeXT 团队使用了卡耐基梅隆大学的 [Mach 内核][3] 和部分 BSD 代码库来创建 [NeXTSTEP 操作系统][4]。
NeXT never became a financial success, due in part to Jobs habit of spending money like he was still at Apple. Meanwhile, Apple had tried unsuccessfully on several occasions to update their operating system, even going so far as to partner with IBM. In 1997, Apple purchased NeXT for $429 million. As part of the deal, Steve Jobs returned to Apple and NeXTSTEP became the foundation of macOS and iOS. NeXT never became a financial success, due in part to Jobs habit of spending money like he was still at Apple. Meanwhile, Apple had tried unsuccessfully on several occasions to update their operating system, even going so far as to partner with IBM. In 1997, Apple purchased NeXT for $429 million. As part of the deal, Steve Jobs returned to Apple and NeXTSTEP became the foundation of macOS and iOS.
NeXT 从来没有取得过财务上的成功,部分归因于乔布斯花钱的习惯他就像还在苹果公司一样。与此同时Apple 曾多次试图更新其操作系统,甚至与 IBM 合作。1997年Apple 以4.29亿美元收购了 NeXT。作为交易的一部分史蒂夫乔布斯回到了 AppleNeXTSTEP 成为了 macOS 和 iOS 的基础。 NeXT 从来没有取得过财务上的成功,部分归因于 Jobs 花钱的习惯他就像还在苹果公司一样。与此同时Apple 曾多次试图更新其操作系统,甚至与 IBM 合作,但从未成功。1997年Apple 以 4.29 亿美元收购了 NeXT。作为交易的一部分Steve Jobs 回到了 Apple同时 NeXTSTEP 成为了 macOS 和 iOS 的基础。
### History of Linux Kernel ### History of Linux Kernel
@ -29,12 +29,12 @@ NeXT 从来没有取得过财务上的成功,部分归因于乔布斯花钱的
Unlike the macOS kernel, Linux was not created as part of a commercial endeavor. Instead, it was [created in 1991 by Finnish computer science student Linus Torvalds][5]. Originally, the kernel was written to the specifications of Linus computer because he wanted to take advantage of its new 80386 processor. Linus posted the code for his new kernel to [the Usenet in August of 1991][6]. Soon, he was receiving code and feature suggestions from all over the world. The following year Orest Zborowski ported the X Window System to Linux, giving it the ability to support a graphical user interface. Unlike the macOS kernel, Linux was not created as part of a commercial endeavor. Instead, it was [created in 1991 by Finnish computer science student Linus Torvalds][5]. Originally, the kernel was written to the specifications of Linus computer because he wanted to take advantage of its new 80386 processor. Linus posted the code for his new kernel to [the Usenet in August of 1991][6]. Soon, he was receiving code and feature suggestions from all over the world. The following year Orest Zborowski ported the X Window System to Linux, giving it the ability to support a graphical user interface.
与macOS内核不同Linux并非源于一次商业尝试。相反它是由[芬兰计算机科学专业学生 Linus Torvalds][5] 于1991年创建的。最初内核是按照 Linus 的计算机的规格编写的因为他想利用其新的80386处理器译注Linus 认为研究80386处理器最好的方法就是为它开发一个新的操作系统所以有了 Linux。Linus [于1991年8月在 Usenet 上][6]发布了他的新内核代码。很快他就收到了来自世界各地的代码和功能建议。次年Orest Zborowski将X Window系统移植到 Linux使其能够支持图形用户界面。 macOS 内核不同Linux 并非源于一次商业尝试而创建。相反,它是由[芬兰计算机科学专业学生 Linus Torvalds][5] 于 1991 年创建的。最初,内核是按照 Linus 的计算机的规格编写的,因为他想利用其新的 80386 处理器译注Linus 认为研究 80386 处理器最好的方法就是为它开发一个新的操作系统,所以有了 Linux。Linus [于 1991 8 月在 Usenet 上][6]发布了他的新内核代码。很快他就收到了来自世界各地的代码和功能建议。次年Orest Zborowski X Window 系统移植到 Linux使其能够支持图形用户界面。
Over the last 27 years, Linux has slowly grown and gained features. Its no longer a students small-time project. Now it runs most of the [worlds][7] [computing devices][8] and the [worlds supercomputers][9]. Not too shabby. Over the last 27 years, Linux has slowly grown and gained features. Its no longer a students small-time project. Now it runs most of the [worlds][7] [computing devices][8] and the [worlds supercomputers][9]. Not too shabby.
在过去的27年中Linux已经慢慢成长并增加了不少功能。这不再是学生的小型项目。现在它运行在[世界上][7]大多数的[计算设备][8]和[超级计算机][9]上。不是太寒酸。 在过去的 27 年中Linux 已经慢慢成长并增加了不少功能。这不再是学生的小型项目。现在它运行在[世界上][7]大多数的[计算设备][8]和[超级计算机][9]上。不错!
### Features of the macOS Kernel ### Features of the macOS Kernel
@ -42,7 +42,7 @@ Over the last 27 years, Linux has slowly grown and gained features. Its no lo
The macOS kernel is officially known as XNU. The [acronym][10] stands for “XNU is Not Unix.” According to [Apples Github page][10], XNU is “a hybrid kernel combining the Mach kernel developed at Carnegie Mellon University with components from FreeBSD and C++ API for writing drivers”. The BSD subsystem part of the code is [“typically implemented as user-space servers in microkernel systems”][11]. The Mach part is responsible for low-level work, such as multitasking, protected memory, virtual memory management, kernel debugging support, and console I/O. The macOS kernel is officially known as XNU. The [acronym][10] stands for “XNU is Not Unix.” According to [Apples Github page][10], XNU is “a hybrid kernel combining the Mach kernel developed at Carnegie Mellon University with components from FreeBSD and C++ API for writing drivers”. The BSD subsystem part of the code is [“typically implemented as user-space servers in microkernel systems”][11]. The Mach part is responsible for low-level work, such as multitasking, protected memory, virtual memory management, kernel debugging support, and console I/O.
macOS 内核被官方称为 XNU。这个[首字母缩写词][10]代表“XNU 不是 Unix”。根据 [Apple的Github页面][10]XNU 是“将卡耐基梅隆大学开发的 Mach 内核和 FreeBSD 组件组合而成的混合内核,加上用于编写驱动程序的 C++ API”。代码的 BSD 子系统部分[“在微内核系统中通常实现为用户空间的服务”][11]。Mach 部分负责底层工作,例如多任务、内存保护、虚拟内存管理、内核调试支持和控制台 I/O。 macOS 内核被官方称为 XNU。这个[首字母缩写词][10]代表“XNU 不是 Unix”。根据 [Apple Github 页面][10]XNU 是“将卡耐基梅隆大学开发的 Mach 内核和 FreeBSD 组件组合而成的混合内核,加上用于编写驱动程序的 C++ API”。代码的 BSD 子系统部分[“在微内核系统中通常实现为用户空间的服务”][11]。Mach 部分负责底层工作,例如多任务、内存保护、虚拟内存管理、内核调试支持和控制台 I/O。
### Features of Linux Kernel ### Features of Linux Kernel