github上Fuchsia项目相关文章翻译 - Relationship with LK (fuchsia-mirror/magenta/mg_and_lk.md)

来源:互联网 发布:营造清朗的网络空间 编辑:程序博客网 时间:2024/06/05 19:06

版权声明:本文为博主原创文章,未经博主允许不得转载。

Magenta and LK - Magenta和LK的关系
LK is a Kernel designed for small systems typically used in embedded applications. It is good alternative to commercial offerings like FreeRTOS or ThreadX. Such systems often have a very limited amount of ram, a fixed set of peripherals and a bounded set of tasks.

  LK是专门为嵌入式设计的小型内核(百度百科上说LK只是整个系统的引导部分,所以它不是独立存在),它能很好的替代FreeRTOS和ThreadX之类的商业产品。这类系统通常只有很小的内存,一些固定的外围设备,以及有限几个任务(task是计算机术语,可以百度)。

On the other hand, Magenta targets modern phones and modern personal computers with fast processors, non-trivial amounts of ram with arbitrary peripherals doing open ended computation.

  另一方面,Magenta是面向现代化的手机和个人电脑而设计开发的。这些设备通常拥有很快的CPU,N个G的内存,多种多样的外设,而且能进行开放式的计算。
  
Magenta inner constructs are based on LK but the layers above are new. For example, Magenta has the concept of a process but LK does not. However, a Magenta process is made of by LK-level constructs such as threads and memory.

  Magenta的内部结构是基于LK设计的,但其上层组件全是新开发的。比如:Magenta有进程的概念,而LK没有;但是,一个Magenta的进程是由LK的线程和内存概念组合而成的。
  
More specifically, some the visible differences are:

  以下是一些更加明显的区别:
  
• Magenta has first class user-mode support. LK does not.
• Magenta is an object-handle system. LK does not have either concept.
• Magenta has a capability-based security model. In LK all code is trusted.

• Magenta支持一级用户模式,而LK不支持
• Magenta是基于对象和句柄的概念而设计的系统(百度一下“内核对象”了解更多),而LK不是
• Magenta存在安全模式,而LK不存在

Over time, even the low level constructs will change to accomodate the new requirements and to be a better fit with the rest of the system.

  随着时间的推移,Magenta的底层架构也会为了适应新的需求而发生变化。

1 0
原创粉丝点击