1.2 Computer-System Organization Flashcards

1
Q

A modern general-purpose computer system consists of one or more _____ and a number of device controllers.

A

CPUs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Device controllers are connected through a common _____ that provides access between components and shared memory.

A

bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Each device controller is in charge of a specific type of _____, such as a disk drive or graphics display.

A

device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A device controller maintains some local _____ storage.

A

buffer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The device controller is responsible for moving the data between the peripheral devices and its local _____ storage.

A

buffer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Typically, operating systems have a _____ for each device controller.

A

device driver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The device driver provides the rest of the operating system with a uniform _____ to the device.

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The CPU and device controllers can execute in _____, competing for memory cycles.

A

parallel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To ensure orderly access to shared memory, a memory controller _____ access to the memory.

A

synchronizes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The three key aspects of the system discussed are interrupts, storage structure, and _____ structure.

A

I/O

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To start an I/O operation, the device driver loads the appropriate registers in the _______.

A

device controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The device controller examines the contents of the registers to determine what action to take, such as _______.

A

read a character from the keyboard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Once the transfer of data is complete, the device controller informs the device driver that it has _______.

A

finished its operation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The device driver gives control to other parts of the operating system, possibly returning the data or a _______ to the data if the operation was a read.

A

pointer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

For other operations, the device driver returns status information such as ‘write completed successfully’ or _______.

A

‘device busy’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The controller informs the device driver that it has finished its operation via an _______.

A

interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Hardware may trigger an interrupt by sending a signal to the CPU, usually by way of the _______.

A

system bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

When the CPU is interrupted, it stops what it is doing and immediately transfers execution to a _______ location.

A

fixed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The interrupt service routine executes, and on completion, the CPU resumes the _______ computation.

A

interrupted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Each computer design has its own interrupt mechanism, but several functions are _______.

A

common

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The straightforward method for managing the transfer of control to the interrupt service routine would be to invoke a _______ routine.

A

generic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Interrupts must be handled quickly, as they occur very _______.

A

frequently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

A table of pointers to interrupt routines can be used to provide the necessary _______.

A

speed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

The table of pointers is generally stored in _______ memory.

A

low

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

These locations hold the addresses of the _______ service routines for the various devices.

A

interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

This array, or interrupt vector, of addresses is indexed by a unique number given with the _______ request.

A

interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

The interrupt architecture must also save the _______ information of whatever was interrupted.

A

state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

If the interrupt routine modifies the processor state, it must explicitly save the _______ state.

A

current

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

After servicing the interrupt, the saved return address is loaded into the _______ counter.

A

program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

The CPU detects a signal on the interrupt-request line after executing every ___.

A

instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

The CPU reads the ___ when it detects that a controller has asserted a signal.

A

interrupt number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

The CPU jumps to the interrupt-handler routine using the interrupt number as an index into the ___.

A

interrupt vector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

The interrupt handler saves any state it will be changing during its ___.

34
Q

After processing, the interrupt handler executes a ___ to return the CPU to the execution state prior to the interrupt.

A

return from interrupt instruction

35
Q

The device controller raises an interrupt by asserting a signal on the ___.

A

interrupt request line

36
Q

In a modern operating system, we need the ability to defer interrupt handling during ___.

A

critical processing

37
Q

An efficient way to dispatch to the proper interrupt handler for a device is a requirement of modern operating systems, known as ___.

A

efficient dispatching

38
Q

Modern computer hardware provides multilevel interrupts, allowing the operating system to distinguish between ___ and ___ interrupts.

A

high-priority, low-priority

39
Q

The nonmaskable interrupt is reserved for events such as ___.

A

unrecoverable memory errors

40
Q

The second interrupt line is ___, which can be turned off by the CPU before executing critical instructions.

41
Q

The purpose of a vectored interrupt mechanism is to reduce the need for a single interrupt handler to search all possible ___ of interrupts.

42
Q

A common solution to the interrupt handler address limitation is to use ___.

A

interrupt chaining

43
Q

In interrupt chaining, each element in the interrupt vector points to the head of a list of ___.

A

interrupt handlers

44
Q

Events from 0 to 31 are used to signal various error conditions and are classified as ___.

A

nonmaskable

45
Q

Events from 32 to 255 are classified as ___ and are used for device-generated interrupts.

46
Q

The interrupt mechanism implements a system of interrupt ___ levels.

47
Q

The system of interrupt priorities allows a high-priority interrupt to ___ the execution of a low-priority interrupt.

48
Q

Interrupts are used throughout modern operating systems to handle ___ events.

A

asynchronous

49
Q

Because interrupts are used heavily for time-sensitive processing, efficient interrupt handling is required for good system ___.

A

performance

50
Q

The CPU can load instructions only from _______.

51
Q

Main memory is also called _______.

A

random-access memory (RAM)

52
Q

Main memory is commonly implemented in a semiconductor technology called _______.

A

dynamic random-access memory (DRAM)

53
Q

The first program to run on computer power-on is called a _______.

A

bootstrap program

54
Q

Since RAM is ________, it cannot be trusted to hold the bootstrap program.

55
Q

For nonvolatile storage, computers use _______.

A

electrically erasable programmable read-only memory (EEPROM)

56
Q

EEPROM can be changed but cannot be changed _______.

A

frequently

57
Q

The load instruction moves a byte or word from main memory to an _______ within the CPU.

A

internal register

58
Q

The store instruction moves the content of a register to _______.

A

main memory

59
Q

In a von Neumann architecture, the instruction-execution cycle first fetches an instruction from _______.

60
Q

Main memory is usually too small to store all needed programs and data _______.

A

permanently

61
Q

The most common secondary storage devices are _______ and _______.

A

hard-disk drives (HDDs), nonvolatile memory (NVM) devices

62
Q

Secondary storage is _______ than main memory.

A

much slower

63
Q

Tertiary storage is used only for special purposes, such as _______.

A

to store backup copies of material

64
Q

The main differences among various storage systems lie in _______, ________, and _______.

A

speed, size, volatility

65
Q

The various storage systems can be organized in a hierarchy according to _______ and _______.

A

storage capacity, access time

66
Q

Volatile storage is referred to simply as _______.

67
Q

Nonvolatile storage retains its contents when power is _______.

68
Q

Mechanical storage systems include _______ and _______.

A

HDDs, optical disks

69
Q

Electrical storage systems include _______ and _______.

A

flash memory, SSD

70
Q

Mechanical storage is generally larger and less expensive per byte than _______ storage.

A

electrical

71
Q

The design of a complete storage system must balance all factors, including the use of _______ memory as necessary.

72
Q

Caches can be installed to improve performance where a large disparity exists between two _______.

A

components

73
Q

A large portion of operating system code is dedicated to managing _______.

74
Q

The form of _______ I/O is fine for moving small amounts of data.

A

interrupt-driven

75
Q

Direct memory access (DMA) is used to solve the problem of high overhead when used for _______ data movement.

76
Q

In DMA, the device controller transfers an entire block of data directly to or from the device and _______.

A

main memory

77
Q

Only one _______ is generated per block in DMA to indicate that the operation has completed.

78
Q

While the device controller is performing DMA operations, the CPU is available to accomplish _______.

A

other work

79
Q

Some high-end systems use _______ rather than bus architecture.

80
Q

On switch architecture systems, multiple components can talk to other components _______.

A

concurrently

81
Q

In switch architecture, DMA is even more _______.