登陆注册
27082000000017

第17章 Operating Systems(1)

3.1 Summary of Operating Systems

An operating system is a program, which acts as an interface between a user of a computer and the computer hardware? The purpose of an operating system is to provide an environment in which a user may execute programs. In general, however, there is no completely definition of an operating system. Operating systems exist because they are a reasonable way to solve the problem of creating a usable computing system. The fundamental goal of computer systems is to execute user programs and solve user problems. Towards this goal computer hardware is constructed. Since bare hardware alone is not very easy to use, application programs are developed. These various programs require certain common operations, such as controlling the I/O devices. The common functions of controlling and allocating resources are then brought together into one piece of software: the operating system.

There are many important reasons for learning operating system; the most notable are:

The user must interact with the operating system in order to accomplish task since it is his primary interface with the computer;

The selection of the operating system and its options is a major decision for most computer installatio ns;

Many concepts and techniques found in operating systems have general applicability in other applications;

For special-purpose usage you may have to design your own operating system or modify on existing one.

An operating system is similar to a government. Its hardware, software, and data provide the basic resource of a computer system. The operating system provides file means for the proper use of these resources in the operation of the computer system. Like government, the operating system performs no useful function by itself. It simply provides an environment within which other programs can do useful work.

We can view an operating system as a resource allocator. A computer system has many resources (hardware and software) which may be required to solve a problem: CPU time, memory space, file storage space, input/output (I/0) devices, and so on. Tile operating system acts as the manager of these resources and allocates them to specific programs and users as necessary for their tasks. Since there may be many, possibly conflicting, requests for resources, the operating system must decide which requests are allocated resources to operate the computer system fairly and efficiently.

Viewing the operating system as a resource manager, each manager must do the following:

Keep track of the resources.

Enforce policy that determines who gets what, when, and how much.

Allocate the resource.

Reclaim the resource.m

The primary goal of an operating system is convenience for the user. Operating system exists because riley are supposed to make it easier to compute with an operating system than without an operating system. This is particularly clear when you look at operating systems for small personal computers. A secondary goal is efficient operation of the computer system. This goal is particularly important for large shared multi-user systems. The systems are typically very expensive, and so it is desirable to make them as efficient as possible. These two goals convenience and efficient, are sometimes contradictory. In the past, efficiency considerations were often more important than convenience. Thus much of operating system theory concentrates on optimal use of computing resources.

Operating systems are either single tasking or multitasking. The more primitive single- tasking operating systems can run only one process at a time. For instance, when the computer is printing a document, it cannot start another process or respond to new commands until the printing is completed.

All modern operating systems are multitasking and can run several processes simultaneously. In most computers there is only one CPU, so a multitasking operating system creates the illusion of several processes running simultaneously on the CPU. The most common mechanism used to create this illusion is time slice multitasking, whereby each process is run individually for a fixed period of time. If the process is not completed within the allotted time, it is suspended and another process is run. This exchanging of processes is called context switching. The operating system performs the "bookkeeping" that preserves the state of a suspended process. It also has a mechanism, called a scheduler, what determines which process will be run next. The scheduler runs short processes quickly to minimize perceptible delay. The processes appear to run simultaneously because the user's sense of time is much slower than the processing speed of the computer.

A very important responsibility of any operational software is the scheduling of jobs to be handled by a computer system. This is one of the main tasks of the job management function. The operating system sets up the order in which programs are processed, and defines the sequence in which particular jobs are executed. The term job queue is often used to describe the series of jobs awaiting execution. The operating system weighs a variety of factors in creating the job queue. These include which jobs are currently being processed, the system’s resources being used, which resources will be needed to handle upcoming programs, the priority of the job compared to other tasks, and any special processing requirements to which the system must respond. Tile operational software must be able to assess these factors and control the order in which jobs are processed.

同类推荐
  • 课外英语-生活文体词汇(双语版)

    课外英语-生活文体词汇(双语版)

    实际有用的词汇等等在这些书中,备有单词解释,相关简介,或中文翻译,便于同学们更好的阅读和理解,真正进入文字的内涵当中,准确地和文字进行交流。日常居家生活、休闲旅游和经文化体育艺术类别的词汇等常用到的英语词汇怎样表达?
  • 职场英语,说不好被炒

    职场英语,说不好被炒

    《职场英语,说不好被炒》涵盖了简历、面试、信函、电话、会议等职场的方方面面。书中的对话和句子皆可拿来就用,让你行话连篇说英语职场英语,不怕你“学”而不用,就怕你“不学”却必须用!你是否知道:职场英语,说不好被炒?对职场英语,你是否:想说却不敢说?敢说却不会说?《职场英语,说不好被炒》将帮你解答这些疑问,让你摆脱被炒的命运,轻轻松松加薪、升职!
  • 双语学习丛书-人生之道

    双语学习丛书-人生之道

    流淌心灵的隽语,记忆的箴言,在双语的世界里,感受英语学习的乐趣,体会英语学习的奥妙,提高英语学习的能力!丛书包括:爱的交融、财富精英、成长课堂、醇香母爱、父爱如山、故乡情怀、节日趣闻、快乐心语、浪漫往昔等故事。
  • 课外英语-零点故事夜话(双语版)

    课外英语-零点故事夜话(双语版)

    本套书共50册,分为美国各州的小知识,七彩缤纷的音符,优美好看的小散文,开心时分的短文,经典流传的寓言,超级高效的短句,实际有用的词汇等等在这些书中,备有单词解释,相关简介,或中文翻译,便于同学们更好的阅读和理解,真正进入文字的内涵当中,准确地和文字进行交流。本书主要收录了一些名家的精品散文,经典故事,所以很有教育意义。
  • 黑暗的心(双语译林)

    黑暗的心(双语译林)

    《黑暗的心》是英国作家约瑟夫·康拉德德代表作,围绕海员马洛讲述的他早年在非洲刚果河流域行船时的一段经历展开故事。讲述的核心是一个叫库尔茨的白人殖民者的故事,一个矢志将“文明进步”带入野蛮的非洲的理想主义者如何堕落成贪婪的殖民者的故事。在接近库尔茨的过程中,作者借马洛之口向我们描述了一副令人感到压抑的浓墨重彩的非洲大陆腹地的图景。
热门推荐
  • 绝地求生之极品兑换系统

    绝地求生之极品兑换系统

    偶得幸运兑换系统,不仅在吃鸡游戏中为所欲为,还能兑换显示物品!!先兑换个256G的IphoneX玩几天!再兑换点魅力值,跟校花谈一场不分手的恋爱!考试不会做,再兑换一颗复制学霸脑记忆的忆幽丸!周末太无聊,房间乱成团,我特么反手兑换一位能聊天解闷的小仆人!输入现实需求,完成系统给出的任务,即可获得兑换物品。从此,李松的人生就像是开了挂,一路飙升成男神!
  • 龙娘手记

    龙娘手记

    流浪生活的龙人女孩,在剑与魔法世界旅行的故事
  • 天地一先

    天地一先

    苍天天下老,长生生途遥。万族为生善恶聚,劫数冤无穷,纷纷扰扰断风云;征战不断正邪会,定数仇无尽,萧萧杀杀灭红尘;浩劫隐存神魔合,变数杀无赦,苍苍茫茫碎乾坤。百武千神,万类刍狗,求乞上天,求神,一叩三千年。万仙亿道,一剑诛仙,逆转九天,逆道,回首掌生缘。
  • 巅峰师父慢点皮

    巅峰师父慢点皮

    入坑警告不喜勿喷——作为曾经是个巅峰的掌门嗯你没看错!曾经!她从没想过自己如兄长般的师兄竟然会给她下慢性毒药以至于自己的修为日渐消退甚至还连累了自己天赋极好的关门弟子好不容易能重来她定不会让歹人得逞!“师父,您修为高吗?”“还好吧,巅峰时期也不过是全大陆唯一的仙级罢了。”“师父,您认识的草药多吗?”“不多不多,托你师祖的服,这片大陆的草药我基本都能叫出名字了。”/偏男主养成记
  • 为了更强

    为了更强

    在新时代的大潮中,一家老国企里,不甘平庸的领导者带领大家走强企之路的故事。从一个国企里小白的成长,带你看看国企在新时代的新变化,新气象!
  • 山花不在烂漫的绽放

    山花不在烂漫的绽放

    这是一本爱情的回忆录,记载了本人的悲伤爱情史,念念不忘真心的遗忘不了,便是在忙碌之余,大概的回忆的写下我们相处的回忆。
  • 嗨!肖夏

    嗨!肖夏

    一只爱讲故事的喵带你走进一个轻松快乐的浪漫回忆杀~~
  • 彤彤的初中生活

    彤彤的初中生活

    这是一个初中生的烦恼,她生活在一个普通的家庭中,有着自己独特的想法,让人不禁的回味起初中生活......
  • 鬼才医妃,逆天废柴

    鬼才医妃,逆天废柴

    回眸一笑,神已倾倒;银针轻轻一扎,什么疑难杂症?到姐这儿不过是小菜一碟;轻一弹琴,引来无数招摇蝴蝶。美男也就算了,谁能告诉她,那一只呆萌的臭狐狸是怎么回事?穿越,从神医佣兵王穿越到废柴身上?废柴?哼!看看谁能浴火重生,笑到最后!
  • 郎骑竹马来,青梅很坏他很乖

    郎骑竹马来,青梅很坏他很乖

    【全文免费】她和他同年同月同日生,两人从小一起玩到大!第一次开始学习多音字时,她弱弱的问道“卿哥哥是不是代表要亲哥哥呢?”某腹黑男回答道“没错!”无意中亲到他时,他一整天不理她。无奈之下便答应让他吃她一回,当初不当回事。可是等18岁时刚洗完澡走进卧室,某男顺势将她压在身下。“你……你要干嘛?我头发还没吹干!”他在她耳边说道“我要吃掉你!”