你好,游客 登录 注册 搜索
背景:
阅读新闻

什么是Mac OS X?跟Linux有什么区别

[日期:2010-11-08] 来源:yeeyan  作者:yeeyan [字体:大 中 小]

  自从Quartz推出以来,X11在运行上有了很多改进。回到Quartz刚推出时,X没有任何合成模型。没有对缓冲的合理支持。每一个应用程序都有为它们自己预留的一块显示区域,就好象QuickDraw一样,不同的是,Quartz是接受从客户端发送的命令来绘图。如果某个窗口盖住了另外一个,那么那个被盖住的窗口数据就会丢失,需要在之后重绘。字体渲染也很乱。Quartz修复了所有这些问题,并且为之后的X扩展提供了大量灵感,那些扩展也有着相似的用途。

  In terms of current capabilities, Quartz and a recent version of X.org are similar. The difference is that X.org has a cleaner separation of policy and mechanism, and maintains backwards compatibility with applications dating back to the mid 1980s. Because the communication layer between the Quartz frameworks and the window server are private, it would be quite easy to replace them with X.org (although this wouldn"t gain Apple much), and X.org itself has been ported to run on top of Quartz in the form of Apple"s X11.app. At the time of its creation, Quartz was clearly superior to X.org. Now they are roughly equivalent in terms of features, and Quartz is closely integrated with other parts of the system.

  就目前的性能而言,Quartz和最近的X.org版本是相似的。不同之处在于,X.org对于策略和方法有一个更加清楚的区分,同时保持了对1980年代中期以来的应用程序的兼容。由于在Quartz的框架和窗口管理器之间的通讯层是私有的,所以它很容易用X.org来替换。(虽然这不会从苹果公司获益多少),而且X.org本身也被导入至Quartz的上层,以Apple X11程序的形式运行。当Quartz刚被创造出时,它大大地超越过X.org。而现在,它们在很多特性上基本相当,而Quartz更紧密的与系统的其他部分整合。

  OS X is not FreeBSD

  OS X不是FreeBSD

  Lots of parts of OS X come from FreeBSD, from the top half of the kernel up into the userland. The lower parts come from Mach and a lot, such as the virtual memory subsystem and scheduler, have been heavily reworked in recent versions.

  OS X的许多部分都来自于FreeBSD,从内核顶部到用户态(userland)。较底层的部分则来自于Mach,并且许多诸如虚拟内存子系统和排程器的部分,都在最近的版本中被大量重写了。

  It"s almost as much of a mistake to say that OS X is not FreeBSD as it is to say that it is FreeBSD. From the perspective of a userspace programmer, it is very difficult to tell the two apart. Aside from the presence of Mach ports on Darwin, the two are remarkably similar. The Mach layer at the bottom of the kernel is visible in userspace, but not directly used by most developers outside Apple. Indeed, their documentation recommends against relying on its presence, so it may vanish altogether in a future version.

  认为OS X不是FreeBSD几乎就如同认为OS X是FreeBSD一样错误。从一个用户应用层的程序编写者的角度来看,这两者很难区分。除了Darwin上还存在的Mach端口,这两者相当的相似。内核底层的Mach层对于用户空间层(userspace)来说是可见的,但是却不能被大部分非苹果公司的开发者直接运用。实际上,苹果公司的文档推荐不要依赖于它的存在,所以在将来,它有可能完全消失。

  The best way to think of OS X is as a close relative of FreeBSD. It shares a lot of code and is very similar to develop for. It"s no accident that FreeBSD was the first platform that had libdispatch, the core of Apple"s Grand Central, ported to it.

  把OS X看作是FreeBSD的近亲是看待OS X的最佳方式。它分享了大量代码,同时开发上也非常相似。FreeBSD是第一个拥有libdispatch的平台,这并非巧合,苹果的Grand Central,导入了其中。

linux
相关资讯       Mac OS X 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款