计算机组织及结构—性能设计第八版答案-COA8e.pdf
SOLUTIONS TO
PRACTICE PROBLEMS
COMPUTER ORGANIZATION AND
ARCHITECTURE
DESIGNING FOR PERFORMANCE
EIGHTH EDITION
WILLIAM STALLINGS
Copyright 2009: William Stallings
TABLE OF CONTENTS
Chapter 2 Computer Evolution and Performance 3
Chapter 3 Computer Function and Interconnection7
Chapter 4 Cache Memory 9
Chapter 5 Internal Memory 13
Chapter 6 External Memory 14
Chapter 7 Input/Output 15
Chapter 8 Operating System Support 17
Chapter 9 Computer Arithmetic19
Chapter 10 Instruction Sets: Characteristics and Functions 21
Chapter 11 Instruction Sets: Addressing Modes and Formats23
Chapter 12 Processor Structure and Function 24
Chapter 13 Reduced Instruction Set Computers 27
Chapter 14 Instruction-Level Parallelism and Superscalar Processors30
Chapter 15 Control Unit Operation32
Chapter 17 Parallel Processing33
Chapter 18 Multicore Computers 35
Chapter 19 Number Systems36
Chapter 20 Digital Logic 37
Appendix B Assembly Language and Related Topics 38
-2-
CHAPTER 2 COMPUTER EVOLUTION AND
PERFORMANCE
2.1 Fraction of CPU which gets enhanced = 30/100=0.30
Fraction of CPU in I/O activity = 60/100=0.60
Speed up for enhancement given = 10
Therefore, overall speed up is = 1 / (0.50 + (0.30/10)) = 1.889.
2.2 This question is about performance benchmarks for computer systems. It involves
how rates of several programs of a benchmark suite are combined to give a single
value.
a. To combine rates of execution one must use a weighted harmonic mean.
The WHM is defined as
1
WHM =