Chapter 1
Chapter 1
Questions
1.1. List and briefly define the four main elements of a computer.
1.3. In general terms, what are the four distinct actions that a machine instruction can
specify?
Processor Memory - Data can be moved from the processor to the memory or from the
memory to the processor.
Processor I/O: Data can be transferred to or from a peripheral device by transferring it
between the processor and an I/O device.
Data processing: entails performing some arithmetic or logic operation on data.
Control: An instruction can specify that the execution sequence be changed.
A mechanism that allows other modules (I/O, memory) to disrupt the processor's normal
sequencing.
Interrupts are prioritized, and those with higher priorities are executed even while interrupts
with lower priorities are handled.
Cache memory is designed to provide memory access times comparable to the fastest
memories available while also supporting a large memory size.
A multiprocessor system is a computer system that uses two or more processors to handle
tasks simultaneously. A multicore system is a processor that has two or more cores, which are
processing units that can independently handle tasks.
1.9. What is the distinction between spatial locality and temporal locality?
1.10. In general, what are the strategies for exploiting spatial locality and temporal
locality?
By storing recently used instruction and data values in cache memory and utilizing a cache hierarchy,
temporal locality is exploited. Spatial locality is typically exploited by employing larger cache blocks
and incorporating prefetching mechanisms (fetching items whose use is anticipated) into cache
control logic.