Operating Systems Chapter 7 Quiz Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:57 AM on 5/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

What is a buffer?

A temporary storage area in main memory, channels, or control units used to sync the fast CPU with slow I/O devices. (Waiting room).

2
New cards

(T/F) Using even parity on the 1s for a 4-bit codeword space, there will be 16 valid code words.

False

3
New cards

(T/F) Buffers are used to synchronize the movement of data between the relatively slow I/O devices and the very fast CPU.

True

4
New cards

____ peripheral devices are assigned to only one job at a time.

Dedicated

5
New cards

The ____ is a hardware flag that must be tested by the CPU to determine when a device has completed an operation.

CSW

6
New cards

When constructing the Hamming Code, which best describes the placement of the parity bits in the code?

Each 2^N bit position, where N=0,1,2,3,... are parity bits. The rest are data.

7
New cards

You are using even parity on the 1s for a 6-bit code system. Suppose the following code word is received. It is illegal since there are an odd number of 1s. The lowest-order bit is the parity bit. Which of the following represents the corrected code word?

Received Illegal Code: 110100

The answer cannot be determined

8
New cards

(T/F) When using DMA, the CPU controls the transfer of data to and from memory over the system bus.

False

9
New cards

(T/F) RAID Level 1 is not considered a true form of RAID because it cannot recover from hardware failure.

False

10
New cards

(T/F) The universal serial bus (USB) controller acts as an interface between the operating system, device drivers, applications, and the devices that are attached via the USB host.

True

11
New cards

The I/O ____ allocates the devices, control units, and channels.

Schedular

12
New cards

For a movable head drive, which of the following tends to be the slowest operation in the access time measurement?

Seek time

13
New cards

Single buffer compared to a double buffer?

The CPU must wait for the buffer to fill before processing.

While the CPU processes one record from the first buffer, the channel can simultaneously read/write the next record into the second buffer. (Overlapped processing).

14
New cards

Where are buffers often encountered in hardware?

In main memory, I/O channels, and control units.

15
New cards

What are dedicated devices?

Devices assigned to one job at a time for its entire duration (tape drives, plotters). It’s inefficient if it’s not used 100% of the time.

16
New cards

What are shared devices?

A device where multiple processes can access it at the same time via interleaving (hard drives, DASD).

17
New cards

What are virtual devices?

A dedicated device that acts like a shared device. To your programs it looks like the device is ready to be used. But in reality, the data is in a queue (spooling).

18
New cards

What is Raid 0?

Data striping. Spreads data across multiple disks. Fast, but there’s no redundancy or error correction.

19
New cards

What is Raid 1?

Mirroring. Provides a duplicate set of all data. It’s expensive (requires 2 disks) but it’s highly reliable.

20
New cards

What is Raid 10?

A combination of mirroring and striping (1 + 0 = 10). Has both speed and reliability.

21
New cards

What is the importance of Raid?

It improves I/O performance and enables data recovery incase of hardware failure.

22
New cards

What is a parity bit?

An extra bit added to the end of a binary string to make sure the data didn’t get corrupted.

23
New cards

What is the parity rule?

The total number of 1s in the entire message (including the parity bit) must be an even number (0,2,4,6).

24
New cards

What happens if a bit flips ilegally?

If a 0 becomes a 1, or 1 becomes a 0 during a transfer, the count of 1s will change from Even to Odd.

When the receiver counts the 1s, they will find an odd number of 1s when the rule was even, and know the data is illegal/corrupted and must be sent again.

25
New cards

What is the difference between hamming code and single parity bit?

A ___ can tell you if something went wrong.

The ___ can tell you exactly which bit is broken and fix it.

26
New cards

What is hamming code and how does it work?

It’s error control code that can detect and correct single bit errors. There are multiple parity bits throughout the data. Each parity bit checks a group of data bits. They overlap, allowing for easy detection and correction.

27
New cards

What is a I/O Traffic Controller?

Monitors the status of devices, control units, and channels. It finds all availible paths and maintains a status database.

28
New cards

What is an I/O Scheduler?

Similar to a process scheduler, but it decides which I/O request to satisfy first based on a schedule (predetermined).

29
New cards

What is an I/O Device Handler?

Performs the actual data transfer, handles interrupts, and manages error conditions.

30
New cards

Define Sequential Access

Records are stored and read in a specific linear order (in sequence). Good for massive backups/sequential files. Slow for random lookups. Example: Tape drive, VHS

31
New cards

Define Direct Access (DASD)

Can read/write directly to a specific area. Good for fast random access. Performance depends on record location. Example: HDDs, CDs, DVDs.

32
New cards

Between Sequential Access and Direct Access, which has faster access times, and longer/shorter time variance?

Direct access: faster access and shorter variance.

Sequential access: slower access, longer variance (can vary a little bit)

33
New cards

Data access for movable head?

Seek Time (move arm) + Search Time (rotate disk) + Transfer time (move data) = Access Time

34
New cards

Data access for fixed head?

Search time (rotate disk) + Transfer time (move data) = Access time
(No seek time)

35
New cards

What are channels?

Programmable units that act as “traffic cops” to sync the faster CPU with slow I/O devices.

36
New cards

What are control units?

They receive and intercept signals from the channel to manage specific groups of devices (each with their own disks/tapes).

37
New cards

First Come First Serve (FCFS)

Best with light loads. Service time is longer with heavy loads.

38
New cards

Shortest Seek Time First (SSTF)

Best with moderate loads, fast. Localization/starvation problems with heavy loads.

39
New cards

SCAN

Best with light-moderate loads. No starvation. Throughput and avg service time is similar to SSTF, but it favors the middle track.

40
New cards

Circular Scan (C-SCAN)

Best with moderate-heavy loads. Very small time variances.