原版的操作系统_精髓与设计原理_第5版chapter01.pdf
《原版的操作系统_精髓与设计原理_第5版chapter01.pdf》由会员分享,可在线阅读,更多相关《原版的操作系统_精髓与设计原理_第5版chapter01.pdf(51页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Computer System OverviewChapter 1Chapter 11Operating SystemOperating SystemEl ih h df Exploits the hardware resources of one or more processors Provides a set of services to system usersMdd I/O Manages secondary memory and I/O devices2Basic ElementsBasic Elements Processor Processor Main Memory vola
2、tilevolatile referred to as real memory or primary memory I/O modulesI/O modules secondary memory devices communications equipmentq p terminals System bus communication among processors,memory,and I/O modules3ProcessorProcessorTili Two internal registers Memory address register(MAR)Specifies the add
3、ress for the next read or write Memory buffer register(MBR)Memory buffer register(MBR)Contains data written into memory or receives data read from memory y I/O address registerI/O buffer register I/O buffer register4Top Level ComponentsTop-Level ComponentsCPUMain MemoryPCMARIRMBRySystemBusInstructio
4、n012InstructionInstructionIRMBRI/O ARI/O BRDataDataDataExecutionunitI/O Modulen-2n-1DataBuffersPC=Program counterIR=Instruction registerMAR=Memory address registerFigure 1.1 Computer Components:Top-Level ViewMAR Memory address registerMBR=Memory buffer registerI/O AR=Input/output address registerI/O
5、 BR=Input/output buffer register5gu e.Copu e Copo es:opeve V ewProcessor RegistersProcessor RegistersUi ibli t User-visible registers Enable programmer to minimize main-fbti i ii tmemory references by optimizing register useCldi Control and status registers Used by processor to control operating of
6、the processor Used by privileged operating-system routines to control the execution of programs6User Visible RegistersUser-Visible RegistersMbfd bhil May be referenced by machine language Available to all programs-application programs and system programs Types of registersypes oeg s e s Data Address
7、 Address Index Segment pointerSegment pointer Stack pointer7User Visible RegistersUser-Visible RegistersAddRi Address Registers Index Involves adding an index to a base value to get an address Segment pointer When memory is divided into segments,yg,memory is referenced by a segment and an offset Sta
8、ck pointer Points to top of stack8pControl and Status RegistersControl and Status RegistersPCt(PC)Program Counter(PC)Contains the address of an instruction to be fetched Instruction Register(IR)Contains the instruction most recently fetched Program Status Word(PSW)Condition codes Interrupt enable/di
9、sable Supervisor/user modeSupervisor/user mode9Control and Status RegistersControl and Status RegistersCdi iC dFl Condition Codes or Flags Bits set by the processor hardware as a result of operations Examplesp es Positive result Negative resultNegative result Zero OverflowOverflow10Instruction Execu
10、tionInstruction ExecutionT Two steps Processor reads instructions from memory Fetches Processor executes each instructionProcessor executes each instruction11Instruction CycleInstruction Cycle12Instruction Fetch and ExecuteInstruction Fetch and ExecuteThfhh ii The processor fetches the instruction f
11、rom memory Program counter(PC)holds address of the instruction to be fetched nextthe instruction to be fetched next Program counter is incremented after each fetch13Instruction RegisterInstruction Register Fetched instruction is placed in the instruction Fetched instruction is placed in the instruct
12、ion register Categories Categories Processor-memory Transfer data between processor and memory Transfer data between processor and memory Processor-I/O Data transferred to or from a peripheral device Data processing Arithmetic or logic operation on datal Control Alter sequence of execution14Characte
13、ristics of a Hypothetical Machine15Example of Program ExecutionExample of Program Execution16Direct Memory Access(DMA)I/Ohdili h I/O exchanges occur directly with memory Processor grants I/O module authority to read from or write to memoryread from or write to memory Relieves the processor responsib
14、ility for the exchange17InterruptsInterruptsIhlif h Interrupt the normal sequencing of the processor Most I/O devices are slower than the processorprocessor Processor must pause to wait for device18Classes of InterruptsClasses of Interrupts19Program Flow of Control Without Interrupts20Program Flow o
15、f Control With Interrupts,Short I/O WaitUserI/OProgramProgramI/OCommand14WRITECommand2aWRITEInterruptHandler2b5END3aWRITE3b(b)Interrupts;short I/O wait21(b)Interrupts;short I/O waitProgram Flow of Control With Interrupts;Long I/O Wait22Interrupt HandlerInterrupt HandlerPiilI/O Program to service a p
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 原版 操作系统 精髓 设计 原理 chapter01
限制150内