OS Components and Structure Unversity of Washington操作系統(tǒng)的組成與結(jié)構(gòu)華盛頓大學(xué)_第1頁(yè)
OS Components and Structure Unversity of Washington操作系統(tǒng)的組成與結(jié)構(gòu)華盛頓大學(xué)_第2頁(yè)
OS Components and Structure Unversity of Washington操作系統(tǒng)的組成與結(jié)構(gòu)華盛頓大學(xué)_第3頁(yè)
OS Components and Structure Unversity of Washington操作系統(tǒng)的組成與結(jié)構(gòu)華盛頓大學(xué)_第4頁(yè)
OS Components and Structure Unversity of Washington操作系統(tǒng)的組成與結(jié)構(gòu)華盛頓大學(xué)_第5頁(yè)
已閱讀5頁(yè),還剩19頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、os components and structuremarch 31, 2000instructor: gary kimuraslides courtesy of hank levyweek in reviewlpurpose of an oslhardware support for an oslnext the 60,000 foot view of an osos structurelto understand an os, lets first look at its components and then how theyre composed or organized.lwell

2、 come back and look at each of these in detail as the course progresses.lrealize that its never as simple as it looks. these basic concepts exist in some form in all systems, however each system implements them in a slightly different way.lalso, the divisions between components may not be as clean i

3、n the real world as in the modelprocess managementlan operating system executes many kinds of activities: user programs batch jobs or command scripts system programs: print spoolers, name servers, file servers, network listeners, etc.leach of these “execution entities” is encapsulated in a process.l

4、the process includes the execution context (pc, registers, vm, resources, etc) and all info the activity (program) needs to run.lthe os schedules processes to run.processesa program is a passive thing - just a file on the disk with code that is potentially runnable.a process is one instance of a pro

5、gram in execution; at any instance, there may be many processes running copies of a single program (e.g., an editor): each is a separate, independent process.4codestackpcregisterspage tablesresource counts.codestackpcregisterspage tablesresource counts.process bprocess aprocess operationslprocesses

6、are fundamental os-provided objects. lthe os supports operations on processes, e.g.: create a process delete a process suspend a process resume a process inter-process communication inter-process synchronization create/delete a subprocessmemory managementlprimary memory is the direct access storage

7、for cpu.lprograms must be stored in memory to execute.los must: allocate memory space for programs (both explicitly and implicitly) deallocate memory space when needed maintain the mappings from virtual to physical memory (page tables) decide how much memory to allocate to each process, and when a p

8、rocess should be removed from memory (policies)i/o managementlmuch of the os kernel is concerned with i/o.lthe os provides a standard interface between programs (user or sytem) and devices.ldevice drivers are the processes responsible for each device type. a driver encapsulates device-specific knowl

9、edge, e.g., for device initiation and control, interrupt handling, and errors.lthere may be a process for each device, or even for each i/o request, depending on the particular os.secondary storage managementlsecondary storage (disk) is the persistent memory, i.e., it endures system failures (we hop

10、e).llow-level os routines are typically responsible for low-level disk function, such as scheduling of disk operations, head movement, error handling, etc. lthese routines may also be responsible for managing space on the disk.lbut, the line between this and the file system is very fuzzy.space manag

11、ement functions may belong in the file system.file managementlsecondary storage devices are too crude to use directly for long-term storage.lthe file system provides logical objects and logical operations on those objects.la file is the basic long-term storage entity: a file is a named collection of

12、 persistent information that can be read or written.lthe file system supports directories - special files that contain names of other files and associated file information.file managementlfile system provides standard file operations, e.g.: file creation and deletion directory creation and deletion

13、manipulation of files and directories: read, write, extend, rename, protect. file copylthe file system also provides general services, e.g.: backup maintaining mapping information accounting and quotasprotection systemlprotection is a general mechanism throughout the oslall resources objects need pr

14、otection memory processes files deviceslprotection mechanisms help to detect errors as well as to prevent malicious destructioncommand interpreterlprocess that handles interpretation of user input commands from keyboard (or script files)lon some systems, command interpreter is a standard part of the

15、 os lon others, its simply a non-privileged process that interfaces to the user, permitting replacement of interpreter with otherslon others, theres not really a command language (e.g., the macintosh has no commands in the conventional sense)accounting systemlgeneral facility for keeping track of re

16、source usage for all system objectslmay be used to enforce quotas, or to produce bill$.14os structurehardwarememory managementi/o systemsecondary storage managementfile systemprotection systemaccounting systemprocess managementcommand interpreterinformation servicesthe os (a simplified view)error ha

17、ndlingos structurelan os consists of all of these components, plus lots of others, plus system service routines, plus system programs (privileged and non-privileged), plus .lthe big issue: how do we organize all of this? what are the entities and where do they exist? how does these entities cooperat

18、e?lbasically, how do we build a complex system thats: performant reliable extensiblestructuretraditionally, systems such as unix were built as a monolithic kernel:16hardwareos kerneluser programseverythingfile system, virtual memory, i/o drivers, process control, system services, swapping, networks,

19、 protection, interrupt handling, windows, accounting, .structurelproblems with monolithic kernels: hard to understand hard to modify unreliable: a bug anywhere causes a system crash hard to maintainlsince the beginnings of os design, people have sought ways to organize the os to simplify its design

20、and construction.structuring traditional approach is layering: implement systemas a set of layers, where each layer is a virtual machineto the layer above.that is, each layer provides a “machine” that has higher level features.18hardwarelayer 0layer 1layer 2layer 3hardware arch. interfacelayer 0 “vi

21、rtual machine”interfacelayer 1 interfacelayering in thethe first description of this approach was dijkstras the system.19hardwarecpu scheduling (processes)memory managementconsole device (commands)i/o device bufferinguser programsthe systemlsystem was composed as a set of sequential processes.leach

22、peforms a sequential computation.lprocesses communicate through explicit synchronization statements.leach process could be tested and verified independently.leach level sees a logical machine provided by lower levels. level 2 sees virtual processors level 3 sees vm (really segments) level 4 sees a “

23、virtual console” level 5 sees “virtual” i/o driversproblems with layeringlsystems must be hierarchical, but real systems are more complex than that, e.g., file system would like to be a process layered on vm vm would like to use files for its backing store i/olapproach is not flexible.loften has poor performance due to layer crossings.lsystems are often

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論