前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >什么是操作系统 ?WHAT IS AN OPERATING SYSTEM?

什么是操作系统 ?WHAT IS AN OPERATING SYSTEM?

作者头像
一个会写诗的程序员
发布2021-12-16 10:33:47
7300
发布2021-12-16 10:33:47
举报

WHAT IS AN OPERATING SYSTEM?

Operating systems turn ugly hardware into beautiful abstractions.

Operating System:

1.A clean abstract set of resources instead of the messy hardware ones and managing these

hardware resources ( … instruction set, memory organization, I/O, and bus structure ).

2.No sane programmer would want to deal with this disk at the hardware level. Instead, a piece of software, called a disk driver, deals with the hardware and provides an interface to read and write disk blocks, without getting into

the details. Operating systems contain many drivers for controlling I/O devices.

But even this level is much too low for most applications. For this reason, all operating systems provide yet another layer of abstraction for using disks: files. Using this abstraction, programs can create, write, and read files, without having to deal with the messy details of how the hardware actually works.

3.This abstraction is the key to managing all this complexity. Good abstractions turn a nearly impossible task into two manageable ones. The first is defining and implementing the abstractions. The second is using these abstractions to solve the problem at hand. One abstraction that almost every computer user understands is the file, as mentioned above.

什么是操作系统?

操作系统把丑陋的硬件变成美丽的抽象。

操作系统:

1.一个干净的抽象资源集,而不是混乱的硬件资源集,并管理这些资源

硬件资源(...指令集、内存组织、I/O和总线结构)。

2.没有一个理智的程序员会想在硬件层面处理这个磁盘。相反,一个叫做磁盘驱动程序的软件处理硬件,并提供一个读写磁盘块的接口,而不需要进入操作系统包含许多用于控制I/O设备的驱动程序。但是对于大多数应用程序来说,即使是这个级别也太低了。

出于这个原因,所有的操作系统都为使用磁盘提供了另一个抽象层:文件。使用这个抽象,程序可以创建、写入和读取文件,而不必处理硬件实际工作方式的混乱细节。

3.这个抽象是管理所有这些复杂性的关键。好的抽象将一个几乎不可能的任务变成两个可管理的任务。第一个是定义和实现抽象。第二个是使用这些抽象来解决手头的问题。几乎每个计算机用户都理解的一个抽象是文件,如上所述。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021/10/20 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档