登陆注册
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.

同类推荐
  • 英语词汇常见错误例解

    英语词汇常见错误例解

    英语已成为一种国际性的语言,在我国英语学习者也日益增多,特别是在高等院校英语作为一种必修课程,广大师生投入了大量的时间和精力来完成这门课程的教学和学习任务。在近三十年英语教学实践中,我们常看到许多学生在英语词汇运用过程中出现这样或那样的错误,表现在词性不明,词义不清,固定搭配不当以及英语习惯用法不符等。如果我们能及时帮助他们改正这些错误,从而使他们的英语水平得到进一步提高,这就是编写本书的目的所在。
  • 那些激励我前行的身影

    那些激励我前行的身影

    该丛书由美国英语教师协会推荐,特点有三:幽默逗趣,文字浅显易懂,让你笑着学英文!
  • 四级写作速成的秘密:3个月写出好成绩

    四级写作速成的秘密:3个月写出好成绩

    本书以新英语等级考试的评分原则和评分标准为准绳,重点体现出改革后的题型变化和分值变化。具有很强的针对性,对考生中普遍存在的写作弱点和不足进行相关的辅导帮助,每一步都有的放矢。本书提供丰富的句型模板、经典的全文模板以及真题范文,按照记叙文、议论文、应用文、说明文等各种常考体裁,对四级作文进行了详细的解释说明。
  • 世界名牌大全(英汉双语版)

    世界名牌大全(英汉双语版)

    本书《世界名牌圣经》是中英文的对照白金版本,不仅给读者展现原汁原味的世界名牌,而且领略名牌风采的同时大幅度提高了英语水平和人生品质。本书根据中国人的喜好精心挑选了8大品类:尖端品牌、世界名表、品牌服装、化妆品、珠宝首饰、皮具、名酒、豪车系列。这8部分全是作者精挑细选出的世界名牌,每一个部分分为“品牌名片”、“品牌标志”、“品牌阅读”并附核心词汇。“品牌名片”一目了然列明名牌的品类、标志风格、创始人、诞生地、诞生时间;“品牌标志”展示名牌的商标;“品牌阅读”详细叙述名牌传奇、名牌经典之作等等。
  • 课外英语-七彩音符时不我待(双语版)

    课外英语-七彩音符时不我待(双语版)

    本书收录了世界经典英文歌曲,其中包括常青的爱、昔日恋情、无心快语、克莱门泰等多首脍炙人口的歌曲,每首歌曲都有中英文歌词、语言点解析及注释赏析。
热门推荐
  • 鲤鱼双枕

    鲤鱼双枕

    制伞世家的二女儿一直很有名,被传为世间第一丑女。但尽管名声如此之大,却从来没有谁能具体描述出她究竟长什么样。她的名字在整个长安城都如雷贯耳:王灵韵。一个糊涂的雀仙,一座空无一人的玫瑰园,一对神奇的枕头,一场双方互不情愿的婚约。互相残杀、相互猜忌的未婚夫妇,那聪明的两个人,究竟什么时候才能分出个高低?然而,当活在旧梦里的初恋少年,再一次犹如天神一般,出现在她的面前时,一切都出乎了自己的预料。还有那个与死去的故人十分相似的女子……鲤鱼双枕,乃是绣工精致的一对枕头。古书上记载,此为妖邪所带来世间之物,其名又为:鸳鸯。但谁也不知道,这双对枕为何名叫鸳鸯。
  • 求你别叫我大善人了

    求你别叫我大善人了

    脑中有一个善人系统,每天没事干就逼迫我去做好事,不做的话就会被惩罚得很惨。“感动小区十大人物”、“拯救百名儿童英雄奖”、“见义勇为世界记录保持者”,别的系统都是一堆好东西送,我这个系统……它可能想我死。
  • 邓小平政治制度文明思想探析

    邓小平政治制度文明思想探析

    关于邓小平政治制度文明思想的特征、价值取向、指导思想、基本原则,以及政治制度文明是邓小平政治体制改革的内在要求、政治体制改革是邓小平政治制度文明的根本手段、完善基本政治制度中政治制度文明思想等等。
  • 快穿在线云恋爱

    快穿在线云恋爱

    1v1双洁甜是雨神一步步迈进温柔乡的故事...–––一"宣传需要?合作关系?"韩遇靠在她耳边意味不明得低语,大手慢慢环住她的腰。宿云不由脑瓜疼"你不是说要保持高冷的形象?"宿云挑眉问,卫衣帽里的男孩舌轻抵牙根,"不高冷?"他漫不经心地回答,却牵着宿云的手不放。···–––宗旨就是甜啦
  • 童年和生活

    童年和生活

    乐于生活享受生活积极对待生活去看生活的美好加油
  • 十方天

    十方天

    这是一个百国相争,千城鼎立的时代这是一段封锁历史,遮掩罪恶的故事高高在上的人,又有多少曾经付出过?这一切的因果,都等待着后人的发现
  • 日月情书

    日月情书

    及时捕捉脑海中闪现的话语,记录每一个不一样的自己
  • 天行

    天行

    号称“北辰骑神”的天才玩家以自创的“牧马冲锋流”战术击败了国服第一弓手北冥雪,被誉为天纵战榜第一骑士的他,却受到小人排挤,最终离开了效力已久的银狐俱乐部。是沉沦,还是再次崛起?恰逢其时,月恒集团第四款游戏“天行”正式上线,虚拟世界再起风云!
  • 魔剑与圣主

    魔剑与圣主

    一千年前,一个其名为帝的圣主结束了动乱,创立士土之制,在九天大陆上建立九大宗门帝星陨落,魔族复生一千年后,九宗不再,仅存七宗。有人预言,下一任九天圣主即将降世——“圣主止戈”也有人预言,大劫将至,无人能逃脱——“白骨堆里出圣人”PS:慢热
  • 异域幽冥

    异域幽冥

    她有一双迷离的浅琥珀似的眼睛,笑起来,毫无杂质,只是衣服上,常带血液,在一个幽灵、恶灵遍布的世界,她身怀异能,与一群各怀鬼胎的人共同踏上了一段未知征程,血腥杀戮,暗黑政治,纠结情感,教会她成长……她所做一切,只是为了回家,家里有她深爱的唯一亲人,父亲。