登陆注册
23770800000017

第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.

同类推荐
  • 社交英语口语,看这本就够

    社交英语口语,看这本就够

    因为本书是我社英语编辑部耗时2年8个月,诚邀十几位中外籍资深英语教师参与撰写、编辑、审校等工作才制作完成的,其目的就是为了给广大英语学习者打造一套“真正实用的社交英语口语大全”。本书共分为7大类:衣、食、住、行、乐、情、节日,全面涵盖老外在社交中谈得最多的100个话题。
  • 课外英语-流行妙语(双语版)

    课外英语-流行妙语(双语版)

    本套书共50册,分为美国各州的小知识,七彩缤纷的音符,优美好看的小散文,开心时分的短文,经典流传的寓言,超级高效的短句,实际有用的词汇等等在这些书中,备有单词解释,相关简介,或中文翻译,便于同学们更好的阅读和理解,真正进入文字的内涵当中,准确地和文字进行交流。本书主要收录了一些经典谚语、流行美语,俚语、吵架用语、经典赞美用语,对处理日常生活中的小事小情很有帮助。
  • 从零开始学俄语.这本就够

    从零开始学俄语.这本就够

    本书针对没有俄语基础的人士写作,而这类人群却有着最强烈的学习需求。或为求职、或为留学。这是“零起点学外语”书系的一本,内容由浅入深,非常适宜初学者阅读。全书分为俄语基础入门、日常生活会话、校园会话、职场对话、应急俄语口语,内容简单实用,旅游、生活、留学一本就够!
  • 英语经典爱情电影对白朗诵

    英语经典爱情电影对白朗诵

    重温经典电影,复习温馨浪漫的爱情对白,也许会有不一样的感受。本系列收录欧美经典爱情影片台词对白,超值体验。
热门推荐
  • 位面救世主

    位面救世主

    百万年前浩劫降临,大陆崩碎,百万年后风云再起,人间炼狱。这是最坏的时代,魔族入侵,天使降临,人心不古,天道失常。这是最好的时代,群雄争霸,天骄并起,万族同心,众志成城。且看无数的今朝天骄,昔日圣贤,为了拯救位面苍生而谱写的壮丽篇章!不小白不套路,不好看不要钱。【不断更就不会死……求收藏!求推荐!求打赏!求加书单!求各种支持!您的每一份贡献都将化为我前进的动力。】(无要求书友交流群:493370621)
  • 武云

    武云

    在这个充满各种玄奇的世界,每个人都有自己的追寻。有人求权倾一世、享尽繁华,有人寻武道尽头、求天下第一,有人愿逍遥天地间、漫步花丛过,亦有人求长生不死,彼岸超脱。而周明觉得,此生此世,只求天地玄奇尽入我眼,红尘摆渡只求一人。而万载超脱、繁华盛景,不过云烟。
  • 长途

    长途

    在校学生陈小多要为自己的叔叔——一个经常跑长途的大卡车司机——拍一个跑车的生活短片。然而不巧的是自己的叔叔已经弃车从舟,无奈之下,陈小多只能随同叔叔上船,一边拍摄叔叔在船上的生活,一边让叔叔讲述陆上跑车的故事。叔侄之间的对话,使外在于叔叔的“我”走进了叔叔的内心世界,使“我”融入了这个具有传奇色彩的卡车司机的视野。
  • 健康生活习惯小全书

    健康生活习惯小全书

    我们绝大多数行为都是习惯使然,但很多是对身体健康不利的坏习惯,有良好的生活规律才有健康的身体,及早养成健康习惯,才是最有效的健康保障。十大方面面面俱到,健康快乐,精力充沛,告别亚健康,大病小病通通远离!为了让每一位现代人都拥有健康、科学的生活方式,从疾病的阴影中逃离,在众多专家的参与下,赵广娜、廉勇精心编写了《健康生活习惯小全书》。《健康生活习惯小全书》从饮食、服饰、睡眠、居家、工作、运动、出游、性生活、防病等诸多方面,阐释了有效预防疾病的诸多习惯。
  • 傲心美人之酷男靠边站

    傲心美人之酷男靠边站

    “我们离婚吧!因为我爱上了别的女人。”结婚三年的丈夫无情的丢给她一张离婚协议书。“离婚?”她不齿地轻笑,潇洒地在协议书上签下大名,从此丈夫成为前夫。谁知,她的潇洒,换来的是他无理的强暴!他的纠缠与无理。害得她失控的怒吼:“前夫,滚”。
  • 爱恨总伤情

    爱恨总伤情

    “冤冤相报何时了,劫劫相缠岂偶然。”谁是谁的因,谁是谁的果。谁起的因,谁了的果。谁能勘破,谁能放下。说也说不清,道也道不明。她一个无心随意的举动将自己推进了精心设计的陷阱。两位男子,一个冷峻如冰;一个热情似火。究竟是谁让谁深陷爱情的漩涡无法自拔。霸道总裁,暖心少爷,无辜平民女。欺骗,伤害;真心,疼爱;什么是真,什么是假。最终她该选择谁是自己的爱情归处?爱之深,恨之切,不管是爱还是恨,都牵扯“情”字,怎一个“伤”字了得。
  • 往事终会成空白

    往事终会成空白

    曾经以为所有的爱情都一定是可歌可泣,感人肺腑才算完美。曾经以为只有得不到的爱才算是最美。曾经以为只有轰轰烈烈的爱才算是真爱。那些花好月圆的守望,那些花前月下的情怀,那些终成眷属的诺言,随着我们一点点长大,一点点成熟,一点点错误,留下的只是一场等侯往事的空白。--情节虚构,请勿模仿
  • 魅之封印

    魅之封印

    女大学生林一一在一次偶然的机会中触发了封印在体内的潜能——能够看到来自阴间的鬼魅。生活从此发生巨变。在经历几次离奇事件之后,为了保障家人和朋友的安全,她独自一人离开家乡,拜一高人为师学习猎鬼的法术。在修炼10年之后因亲友有难而重回故乡,并与恶灵展开斗争。经历了一连串扑朔迷离的事件。虽然自身的能力在不断增强;虽然总能在危机关头扭转局势,化解劫难。但父母的隐瞒,师傅的用心,朋友的猜忌,爱人的纠缠,使得林一一感觉卷入一个巨大的黑洞,深陷其中无法自拔,难以分辨真伪与善恶。在清醒与迷失的边缘行走中,又偶然的发现了惊天之谜。她能否在揭开真相的同时又能维护亲情,维系感情,维持友情?能否控制自身的强大力量用于化解危机铲除邪恶势力?奇异的旅程,正在出发。
  • 水经

    水经

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。
  • 万兽无疆:星际溺宠狂妻

    万兽无疆:星际溺宠狂妻

    【本文已太监,想看本大大的书请搜王大尧】公元8000年,兽成精,人人都可以修炼成仙的时代,什么都改变的时代,唯有他,对她一如既往的宠爱。他,尊贵强大,却对她宠之入骨。她,妩媚狂傲,却对他爱之入命。当二者强强联手,又会擦出怎样的火花呢?众人期待着。而他霸气一笑“你们想多了,天天忙着生崽儿,来不及擦火花!”