CPS590 Midterm -CH 1 & 2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/306

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

307 Terms

1
New cards

os

operating system - uses CPU hardware to provide services to user

2
New cards

-manages secondary memory and I/O

3
New cards

processor

controls operation of computer (data processing)

4
New cards

CPU

name of one processor

5
New cards

main memory

stores data and programs, computer is volatile (loses info), disk is not. aka real or primary memory

6
New cards

I/O modules

external environment and devices

7
New cards

system bus

communicates between I/O modules, processors, main memory

8
New cards

MAR

memory address register - specifies memory address the address in memory for the next read or write

9
New cards

MBR

memory buffer register - contains data to be written into or read from memory

10
New cards

I/OAR

address register that specifies a particular I/O device

11
New cards

I/OBR

buffer register to exchange data between I/O module and processor

12
New cards

GPU

Graphical Processing Unit

13
New cards

SIMD

Single Instruction Multiple Data - techniques in super computers for handling data arrays

14
New cards

DSP

digital signal processors, streams audio and video streams

15
New cards

SoC

System on Chip - CPU, cache, GPU, DSP etc (other components, microprocessor only has CPU and cache)

16
New cards

fetch and execute cycle

basic instruction cycle -

17
New cards
  1. PC increases as instruction is fetched
18
New cards
  1. Processor reads + gets necessary data
19
New cards
  1. Execute
20
New cards

instruction cycle actions

-Processor-Memory

21
New cards

-Processor-I/O

22
New cards

-Data processing (arith/logic)

23
New cards

-Control (alters execution seq)

24
New cards

opcode

first four bits in instruction (12 rest is address)

25
New cards

Interrupts

Classes:

26
New cards

Program

27
New cards

Timer

28
New cards

I/O

29
New cards

Hardware failure

30
New cards

Interrupts

improve processor utilization, stopping normal sequence of instructions to do task

31
New cards

Interrupts

Sections:

32
New cards

-instruction sequence - prepare for I/O op (eg copying data)

33
New cards

-I/O command

34
New cards

-sequence of instructions to complete operation

35
New cards

interrupt request

sent when I/O operation is ready to be serviced, processor suspends program and passes control to an interrupt handler to deal with

36
New cards

interrupt handler routine

An operating system routine that is called when an interrupt signal is received. Decides whether to handle based on priority (or disabled interrupts)

37
New cards

interrupt processing

  1. The device issues an interrupt signal to the processor.
38
New cards
  1. The processor finishes execution of the current instruction before responding
39
New cards

to the interrupt

40
New cards
  1. The processor checks for interrupt request, if it finds one, sends acknowledgment signal to the device that issued the interrupt. The
41
New cards

acknowledgment allows the device to remove its interrupt signal.

42
New cards
  1. The processor prepares to transfer control to the interrupt routine. (saves PC, PSW and address to control stack)
43
New cards
  1. load interrupt handling address to PC
44
New cards
  1. Saves processor register contents
45
New cards
  1. Process interrupts
46
New cards
  1. Ended process and get saved register values
47
New cards
  1. Restore PSW and PC
48
New cards

PSW

program status word - minimum information required to save a program status

49
New cards

multiple interrupts

2 approaches:

50
New cards

-disable interrupts until new request signal

51
New cards

-handle based on priority

52
New cards

Memory Tradeoff

faster access time (speed)

53
New cards

greater capacity

54
New cards

cost

55
New cards

memory hierarchy

descending:

56
New cards

inc capacity

57
New cards

slower access time

58
New cards

cheaper

59
New cards

accessed less often

60
New cards

hit ratio

(H)T1 + (1-H)(T1 + T2)

61
New cards

average access time to two level memory

62
New cards

locality of reference

-memory locations recently referenced, and those near them, are likely to be referenced in the near future

63
New cards

-data tend to cluster

64
New cards

cache memory

A type of memory used to temporarily store frequently used data or programs for quick access; similar to RAM but faster.

65
New cards

cache design

Key elements of cache design:

66
New cards
67
New cards

1) Cache Size

68
New cards

2) Block Size

69
New cards

3) Mapping function

70
New cards

4) Replacement algorithm

71
New cards

5) Write policy

72
New cards

6 Number of cache levels

73
New cards

block size

larger size can increase hit ratio, but too big can decrease as blocks have to be moved out to make room for new ones

74
New cards

mapping function

determines where in cache blocks should be

75
New cards

replacement algorithm

chooses which block to replace when loading a new block (Least Recently Used)

76
New cards

write policy

dictates when to write to memory

77
New cards

eg. when block updated or block replaced (main memory obsolete)

78
New cards

DMA

Direct Memory Access - A technique for transferring data from main memory to a device without passing it through the CPU.

79
New cards

DMA can be performed on separate module on system bus or put in I/O module

80
New cards

I/O operations

3 techniques:

81
New cards

-programmed I/O

82
New cards

-interrupt-driven I/O

83
New cards

-Direct Memory Access

84
New cards

programmed I/O

I/O module performs action, sets bits in I/O status register, but no further action (no interrupt to processor, processor must actively read) - long wait/low performance

85
New cards

interrupt-driven I/O

I/O module interrupts processor when ready to exchange

86
New cards

-more efficient but has limited transfer rate due to processor test and service device

87
New cards

-processor is tied up and must execute a number of instructions for I/O module

88
New cards

DMA

-when processor wishes to read/write a block of data, issues command to DMA with info:

89
New cards

-whether R/W requested

90
New cards

-addr of I/O device involved

91
New cards

-starting location in memory to read/write data to

92
New cards

-number of words to be read or written

93
New cards
94
New cards

-I/O ops delegated to DMA, DMA interrupts when done

95
New cards

-DMA needs control of system bus = waiting for bus cycle

96
New cards

SMP

symmetric multiprocessors - multiple processors of similar power, who share memory and I/O, connected with a bus, can perform same functions, and controlled by an integrated os that helps processors interact with programs.

97
New cards

SMP advantages

Performance

98
New cards

Availability

99
New cards

Incremental Growth (add processors)

100
New cards

Scaling (variability of price and performance)