CNIT 176 Exam 2

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

1/378

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.

379 Terms

1
New cards

What is a basic model

It is a processing speed or program execution

It is determined primarily by ability of I/O operations to stay ahead of processor

2
New cards

What are I/O requirements

  • Means for addressing different peripheral devices

  • A way for peripheral devices to initiate communication with the CPU

  • An efficient means of transferring data directly between I/O and memory for large data transfers since programmed I/O is suitable only for slow devices and individual word transfers

  • Buses that interconnect high-speed I/O devices with the computer must support high data transfer rates

  • Capability of handling devices operating at varying speeds with varying delays

  • Means for handling devices with extremely different control requirements

3
New cards

Simple I/O configurations

knowt flashcard image
4
New cards

What is a Northbridge in relation to I/O

Special chip to handle communication between CPU, GPU, and RAM

5
New cards

What is a Southbridge in relation to I/O

Special chip to handle communication between northbridge and interfaces such as the USB and SATA (harddrive) interfaces

6
New cards

More Complex I/O Module, Intel Xeon

Separate IO controller chips might have been present for Ethernet, Audio, if not part of Southbridge

7
New cards

Is the northbridge apart of the CPU in the Intel Core Series

True

The northbridge is now part of the CPU

8
New cards

What are different advanced I/O techniques

  • Programmed I/O

    • CPU controlled I/O

  • Interrupt Driven I/O

    • External input controls

  • Direct Memory Access Controllers

    • Method for transferring data between main memory and a device that bypasses the CPU

9
New cards

Programmed I/O

  • I/O data and address registers in CPU

  • One word transfer per I/O instruction

  • Address information for each I/O device

  • Full instruction fetch/execute cycle

10
New cards

What are the primary uses of programmed I/O

Keyboards

Communication with I/O controllers

11
New cards

What are interrupts

Signal that causes the CPU to alter its normal flow of instruction execution

  • Frees CPU from waiting for events

  • Provides control for external I/O initiation

12
New cards

What are examples of interrupts

  • Unexpected input

  • Abnormal situation

  • Illegal instructions

  • Multitasking, Multiprocessing

13
New cards

Interrupt Terminology

  • Interrupt lines (hardware)

  • Interrupt requests

  • Interrupt handlers

  • Context

14
New cards

What are interrupt lines

One or more special control lines to the CPU

15
New cards

What are interrupt handlers

Program that services the interrupt

16
New cards

What are interrupt handlers also known as

Interrupt routine

Device driver

17
New cards

What is context (in relation to interrupt terminology)

Saved registers of a program before control is transferred to the interrupt handler

Allows program to resume exactly where it left off when control returns to interrupted program

18
New cards

What are different uses of interrupts

  • Notify that an external event has occurred

    • Real-time or time-sensitive

  • Signal completion

    • Printer ready or buffer full

  • Allocate CPU time

    • Time sharing

  • Indicate abnormal event (CPU originates for notification and recovery)

    • Illegal operation, hardware error

  • Software interrupts

19
New cards

The CPU - The Interrupt Cycle

knowt flashcard image
20
New cards

What is servicing the interrupt

  • Lower priority interrupts are held until higher priority interrupts are complete

  • Suspend program in progress

  • Save context, including last instruction executed and data values in registers, in the PCB or the stack area in memory

  • Branch to interrupt handler program

21
New cards

Print Handler Interrupt

knowt flashcard image
22
New cards

Using an interrupt for Time Sharing

knowt flashcard image
23
New cards

What are the different interrupt processing methods

  • Vectored interrupt

  • Polling

24
New cards

What is vectored interrupt

  • Address of interrupting device is included in the interrupt

  • Requires additional hardware to implement

25
New cards

What is polling

  • Identifies interrupting device by polling each device

  • General interrupt is shared by all devices

26
New cards

What do vectored interrupts look like

knowt flashcard image
27
New cards

What do polled interrupts look like

knowt flashcard image
28
New cards

What do multiple interrupts look like

knowt flashcard image
29
New cards

What is Direct Memory Access

  • Used to transfer large blocks of data

  • It is a direct transfer to and from memory

  • The CPU isn’t actively involved in transfer itself

30
New cards

What are the required conditions for Direct Memory Access

  • The I/O interface and memory must be connected

  • The I/O controller must be capable of reading and writing to memory

  • Conflicts between the CPU and the I/O controller must be avoided

  • Interrupt required for completion

31
New cards

What does DMA stand for

Direct Memory Access

32
New cards

DMA Instructions

  • Application program requests I/O service from operating system

  • To initiate DMA, programmed I/O is used to send information

  • Interrupt to the CPU upon completion of DMA

33
New cards

What is the following information that the programed I/O is used to send to initiate DMA

  • Location of data on I/O device

  • Starting location in memory

  • Size of the block

  • Direction to transfer: read or write

34
New cards

What are I/O controller functions

  • Recognizes messages from device(s) addressed to it and accepts commands from the CPU

  • Provides a buffer where the data from memory can be held until it can be transferred to the device

  • Provides the necessary registers and controls to perform a direct memory transfer

  • Physically controls the device

  • Copies data from its buffer to the device/from the CPU to its buffer

  • Communicates with CPU

35
New cards

Interconnects Example

knowt flashcard image
36
New cards

What are peripherals

  • Devices that are separate from the basic computer

    • Not the CPU, memory, or power source

37
New cards

What are peripherals classified as

Input, Output, and Storage

38
New cards

How do peripherals connect

Ports and Interface to system bus

39
New cards

What are different types of secondary storage

  • Online storage

  • Offline storage - loaded when needed

  • Network file storage

    • File servers, web servers, and database servers

40
New cards

What is flash memory

It is a solid state drive

With large capacity flash memory units

41
New cards

What does flash memory replace as long-term storage

Magnetic dish drives

42
New cards

Is flash memory immune to physical shocks

True

43
New cards

Does flash memory produces lots of heat and noise

False

It generates little heat or noise

44
New cards

How is data read/written in flash memory

It is read/written in blocks

45
New cards

Extra facts on flash memory

  • Wear-leveling used to extend life

  • Controller logic used to manage memory space and provide fast reads/writes

46
New cards

What are magnetic disks made of

It is a platter made of glass, metal, or plastic with a magnetic coating

47
New cards

How is magnetic polarization determined in magnetic disks

Magnetic polarization is determined by 1s and 0s

48
New cards

Parts of a Magnetic Disk

  • Track - Circle

  • Cylinder - Same track on all platters

  • Block - Small arc of a track

  • Sector - Pie-shaped part of a platter

  • Head - Reads data off the disk as disk rotates at high speed

49
New cards

What is the high speed the head rotates on a magnetic disk

5400-10000+ RPM

50
New cards

What is the layout of a Hard Disk

knowt flashcard image
51
New cards

What are the different disk layouts

CAV and CLV and Multiple Zone

52
New cards

What does CAV stand for

Constant Angular Velocity

53
New cards

What is CAV

  • Number of bits on each track is the same; denser towards the center

  • Spins the same speed for every trackc

54
New cards

What does CLV stand for

Constant Linear Velocity

55
New cards

What is CLV

  • All tracks have the same physical length and number of bits

  • Constant speed reading data off a track

  • Drive has to speed up when accessing close to the center of the drive and slow down when accessing towards the edge of the drive

56
New cards

What is Multiple Zone Recording also known as

Zone Bit Recording (ZBR)

Zone-CAV Recording (Z-CAV)

57
New cards

Is multiple zone a compromise between CAV and CLV

True

It is a compromise between CAV and CLV

58
New cards

What is Multiple Zone

  • Disk divided into zones

  • Cylinders in different zones have a different number of sectors

  • Number of sectors in a particular zone is constant

  • Data is buffered so the data rate to the I/O interface is constant

59
New cards

Multiple-Zone disk configuration

knowt flashcard image
60
New cards

What is Seek Time

Time required to move from one track to another

<p>Time required to move from one track to another</p>
61
New cards

What is Latency

The time required for disk to rotate to beginning of correct sector

<p>The time required for disk to rotate to beginning of correct sector </p>
62
New cards

What is Transfer Time

Time required to transfer a block of data to the disk controller buffer

<p>Time required to transfer a block of data to the disk controller buffer</p>
63
New cards

What is average seek time

Average time to move from one track to another

64
New cards

What is average latency time

Average time to rotate to the beginning of the sector

65
New cards

What is the formula to find the average latency time

½ * 1/rotational speed

66
New cards

What is the formula to find the average transfer time

1/(# of sectors * rotational speed)

67
New cards

What is the formula to find the total time to access a disk block

Average seek time + average latency time + average transfer time

68
New cards

What are the components in a data block format in relation to magnetic disks

  • Interblock gap

  • Header

  • Data

69
New cards

What is a formatting disk

  • Establishes the track positions, blocks, and headers needed before use of the disk

70
New cards

What does a disk block format look like

knowt flashcard image
71
New cards

What is a disk array

Grouping of multiple disks together

72
New cards

What does RAID stand for

RAID → Redundant Array of Independent/Inexpensive Disks

73
New cards

What are the different types of RAID Arrays

  • Mirrored array

  • Striped array

  • RAID 0 to RAID 5

74
New cards

What is a mirrored RAID array

  • Two or more disks contain the exact same stores of data

75
New cards

How does a mirrored RAID array read data

Alternate blocks of data are read from hard drives and combined

76
New cards

Is access time reduced in a mirrored RAID array

True

Access time is reduced by approximately a factor equal to the number of disk drives in an array

77
New cards

How does read failure work in a mirrored RAID array

Block is marked and then read from the mirrored drive

78
New cards

Extra fact about mirrored RAID arrays

When using three or more mirrored drives, majority logic is used in the event of a failure.

Fault-tolerant computers use this technique

79
New cards

What is a striped RAID array

A file segment is stored divided into blocks on different disks

80
New cards

What is the minimum amount of drives needed in a striped RAID Array

3

Minimum of three drives needed for true stripping because one drive worth of space is reserved for error checking

81
New cards

Is one drive reserved for error checking in a striped RAID array

True

One drive is reserved for error checking

82
New cards

How does Writes work in a striped RAID array

Writes - block of parity words from each block of data is created and put on the reserved error checking disk

83
New cards

How does Reads work in a striped RAID array

Reads - parity data is used to check original data

84
New cards

What are the different RAID levels

RAID 0

RAID 1

RAID 2, 3, 4

RAID 6

RAID 10

85
New cards

What is RAID 0

No error checking or redundancy, but data is placed across all drives for increased speed

86
New cards

What is RAID 1

Mirrored array

87
New cards

What is RAID 2, 3, 4

Arrays that are striped in different ways (deprecated)

88
New cards

What is RAID 5

Error checking blocks are spread across all drives

89
New cards

What is RAID 6

Double parity blocks, two drives per array can fail

90
New cards

What is RAID 10

Mix of performance of 0 with redundancy of 1 used instead of 5 or 6 if performance is important

91
New cards

What is optical storage

Reflected light off a mirrored or pitted surface

92
New cards

What is CD-ROM

  • 650 MB of data, approximately 550 MB after formatting and error checking

  • Spiral 3 miles long, containing 15 billion bits

  • CLV - all blocks are same physical length

  • Block - 2352 bytes

    • 2k of data (2048)

    • 16 bytes for header (12 start, 4 id)

    • 288 bytes for advanced error control

93
New cards

Different types of optical storage

Laser strikes land

Laser strikes a pit

94
New cards

What is laser strikes land

Light is reflected into a detector

95
New cards

What is laser strikes a pit

Light is scattered

96
New cards

CD Layout

knowt flashcard image
97
New cards

Standard Disk Layout

knowt flashcard image
98
New cards

What are the different types of optical storage

Medium-powered laser blister technology

99
New cards

What is medium-powered laser blister technology also used for

  • CD-R, DVD-R, DVD-R, DVD+R

  • CD-RW, DVD-RW, DVD+RW, DVD-RAM

100
New cards

Are there file compatibility issues between the different formats

True