简体   繁体   English

XV6 操作系统有什么用?

[英]What is XV6 operating system used for?

I have been taking online courses on Operating systems, and I heard them say, that XV6 operating system can be used learn implementation of operating systems, thats all.But after I searched on the internet there aren't enough resources, which would get me started with it.我一直在上操作系统的在线课程,我听他们说,可以使用XV6操作系统来学习操作系统的实现,仅此而已。但是我在网上搜索了足够的资源,这让我从它开始。 My question is, why should I use it,and how will it help me in understanding operating system.我的问题是,我为什么要使用它,它如何帮助我理解操作系统。 (Please be gentle with information you throw at me, I am a newbie :( ) (请对你扔给我的信息保持温和,我是新手:()

Any effort is appreciated任何努力都值得赞赏

There are only 2 possibilities:只有两种可能:

  • too complex to be useful for teaching太复杂而无法用于教学

  • too simple to be useful for teaching太简单而无法用于教学

Things like fancy features/enhanced functionality, mitigating security issues, dealing with hardware bugs/errata, performance, scalability and supporting a very wide range of different hardware all increase the complexity of the code;诸如花哨的特性/增强的功能、缓解安全问题、处理硬件错误/勘误表、性能、可扩展性以及支持非常广泛的不同硬件等都增加了代码的复杂性; and if you look at a real commercial OS (eg Linux maybe) that has to care about all of these things it's hard to learn about one thing (eg memory management) without all the complexity getting in the way and making it significantly harder to learn.如果你看一个真正的商业操作系统(例如 Linux 也许),它必须关心所有这些事情,那么很难了解一件事情(例如内存管理),而不会有所有的复杂性阻碍并使其更难学习.

If you have a simple OS that does none of those things (no fancy features, no mitigation of security issues, ...) then it's much much easier to learn basic principles from it;如果你有一个简单的操作系统,没有做这些事情(没有花哨的功能,没有缓解安全问题,......)那么从中学习基本原理要容易得多; but it also becomes impossible to use it to learn about fancy features, mitigating security issues, dealing with hardware bugs/errata, ...但也无法使用它来了解花哨的功能、缓解安全问题、处理硬件错误/勘误表、......

The solution is to start with a simple OS (eg XV6) to learn the basics, then switch to a real OS later to learn everything else.解决方案是从简单的操作系统(例如 XV6)开始学习基础知识,然后切换到真正的操作系统以学习其他所有内容。

However;然而; most OS courses at Universities are not intended to teach you about writing an OS.大学中的大多数操作系统课程都不是为了教你编写操作系统。 Instead they're intended to give you basic information about operating systems so that you can use that knowledge when writing application programs for existing operating systems.相反,它们旨在为您提供有关操作系统的基本信息,以便您在为现有操作系统编写应用程序时可以使用这些知识。 For that reason (and because there's time constraints) they only do the first part (with a simple OS like XV6) and then the course finishes.出于这个原因(并且因为有时间限制),他们只做第一部分(使用像 XV6 这样的简单操作系统)然后课程结束。

1.XV6 is used for teaching in many universities. 1.XV6 用于许多大学的教学。

2.It's also a tool OS for many program 2.它也是许多程序的工具操作系统

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM