资源预览内容
第1页 / 共84页
第2页 / 共84页
第3页 / 共84页
第4页 / 共84页
第5页 / 共84页
第6页 / 共84页
第7页 / 共84页
第8页 / 共84页
第9页 / 共84页
第10页 / 共84页
亲,该文档总共84页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
SOLUTIONS MANUALOPERATING SYSTEMS: INTERNALS AND DESIGN PRINCIPLES FIFTH EDITIONWILLIAM STALLINGSCopyright 2004: William Stallings课后答案网 w w w .k h d a w .c o m-2- 2004 by William StallingsAll rights reserved. No part of this document may be reproduced, in any form or by any means, or posted on the Internet, without permission in writing from the author.课后答案网 w w w .k h d a w .c o m-3-NOTICEThis manual contains solutions to all of the review questions and homework problems in Operating Systems, Fifth Edition. If you spot an error in a solution or in the wording of a problem, I would greatly appreciate it if you would forward the information via email to me at wsshore.net. An errata sheet for this manual, if needed, is available at ftp:/shell.shore.net/members/w/s/ws/S/W.S.课后答案网 w w w .k h d a w .c o m-4-TABLE OF CONTENTSChapter 1:Computer System Overview.5 Chapter 2:Operating System Overview.11 Chapter 3:Process Description and Control.14 Chapter 4:Threads, SMP, and Microkernels.18 Chapter 5:Concurrency: Mutual Exclusion and Synchronization.21 Chapter 6:Concurrency: Deadlock and Starvation.30 Chapter 7:Memory Management.38 Chapter 8:Virtual Memory.43 Chapter 9:Uniprocessor Scheduling.51 Chapter 10:Multiprocessor and Real-Time Scheduling.62 Chapter 11:I/O Management and Disk Scheduling.65 Chapter 12:File Management.71 Chapter 13:Networking.74 Chapter 14:Distributed Processing, Client/Server, and Clusters.76 Chapter 15:Distributed Process Management.79 Chapter 16:Security.82课后答案网 w w w .k h d a w .c o m-5-A A ANSWERS TO NSWERS TO NSWERS TO QQ QUESTIONSUESTIONSUESTIONS1.1 A main memory, which stores both data and instructions: an arithmetic and logic unit (ALU) capable of operating on binary data; a control unit, which interprets the instructions in memory and causes them to be executed; and input and output (I/O) equipment operated by the control unit.1.2 User-visible registers: Enable the machine- or assembly-language programmer to minimize main memory references by optimizing register use. For high-level languages, an optimizing compiler will attempt to make intelligent choices of which variables to assign to registers and which to main memory locations. Some high- level languages, such as C, allow the programmer to suggest to the compiler which variables should be held in registers. Control and status registers: Used by the processor to control the operation of the processor and by privileged, operating system routines to control the execution of programs.1.3 These actions fall into four categories: Processor-memory: Data may be transferred from processor to memory or from memory to processor. Processor-I/O: Data may be transferred to or from a peripheral device by transferring between the processor and an I/O module. Data processing: The processor may perform some arithmetic or logic operation on data. Control: An instruction may specify that the sequence of execution be altered.1.4 An interrupt is a mechanism by which other modules (I/O, memory) may interrupt the normal sequencing of the processor.1.5 Two approaches can be taken to dealing with multiple interrupts. The first is to disable interrupts while an interrupt is being processed. A second approach is to define priorities for interrupts and to allow an interrupt of higher priority to cause a lower-priority interrupt handler to be interrupted.1.6 The three key characteristics of memory are cost, capacity, and access time.1.7 Cache memory is a memory that is smaller and faster than main memory and that is interposed between the processor and main memory. The cache acts as a buffer for recently used memory locations.1.8 Programmed I/O: The processor issues an I/O command, on behalf of a process, to an I/O module; that process then busy-waits for the operation to be completed before proceeding. Interrupt-driven I/O: The processor issues an I/O command on behalf of a process, continues to execute subsequent instructions, and is interrupt
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号