P3L5 I/O Management Flashcards Preview

Operating Systems > P3L5 I/O Management > Flashcards

Flashcards in P3L5 I/O Management Deck (30)
Loading flashcards...
1
Q

When comparing I/O to a toy shop shipping dept., what is the example for “Have protocols”?

A

interfaces for device I/O

2
Q

When comparing I/O to a toy shop shipping dept., what is the example for “Have dedicated handlers”?

A

device drivers, interrupt handlers

3
Q

When comparing I/O to a toy shop shipping dept., what is the example for “Decouple I/O details for core processing”?

A

abstract I/O device detail from applications

4
Q

What are some examples of I/O devices?

A

Keyboard, microphone, speakers, display, mice, network interface cards…

5
Q

I/O Devices Quiz:
For each device, indicate whether it’s typically used for input (I), output (O) or both (B).

  • keyboard
  • speaker
  • display
  • hard disk drive
  • microphone
  • network interface cards (NIC)
  • flash card
A
I - keyboard
O - speaker
O - display
B - hard disk drive
I - microphone
B - network interface cards (NIC)
B - flash card
6
Q

Name basic I/O Device features

A
  • Control registers
  • Micro controller
  • On device memory
  • Other logic
7
Q

What is the purpose of control registers in I/O?

A

control registers can be accessed by the CPU and permit the CPU/device interactions

8
Q

How are control registers divided? Explain each part.

A
  • command registers, CPU uses to control what exactly the device will be doing
  • data transfer registers, control the data that transfers in and out of the device
  • status registers, used by the CPU to find out exactly what’s happening on the device
9
Q

Describe the microcontroller on an I/O device.

A

A microcontroller is like a device’s CPU. It is what controls all of the operations that actually take place on the device. It may be influenced by the CPU, but the microcontroller will make sure what things happen vs. not.

10
Q

What is PCI?

A

Peripheral Component Interconnect. It’s one of the standard methods for connecting devices to the CPU

11
Q

What do today’s platforms typically support in terms of PCI versions? Give some reasons why.

A
PCI Express Interconnect (PCIe)
which are technologically more advanced than PCI or PCI-X.
- More bandwidth
- faster
- has lower access latency
- supports more devices
12
Q

Name types of CPU - Device interconnects other than PCI bus

A
  • SCSI bus
  • peripheral bus
  • bridges
13
Q

What determines what type of interconnect a device can directly attach to?

A

the controllers that are part of the device hardware

14
Q

What are bridge controllers?

A

They can handle differences between different types of interconnects

15
Q

T or F?

The operating system has to include a device driver for every type of different hardware device that is incorporated in the system.

A

True

16
Q

What are device drivers responsible for?

A

All aspects of device access, management and control.
This includes logic that determines
- how requests can be passed from the higher levels of the system software applications to the actual device,
- how the system can response to device-level events like errors, response notifications or status change info
- in general any device specific details regarding the device configuration or operation

17
Q

Who provides device drivers and are responsible for making sure they work for different OS or OS versions?

A

The manufacturers or the designers of the actual hardware

18
Q

How do OS’es typically standardize device driver interfaces?

A

they provide some device driver framework so that the device manufacturers can develop their drivers within that framework given the specific interfaces that the OS supports

19
Q

What are some benefits of standardizing device interfaces?

A
  • device driver developers know exactly what is expected from the ways the rest of the OS will interact with their device
  • The OS does not depend on one particular device (gives device independence and device diversity)
20
Q

Name some different types of devices

A
  • Block: disk
  • Character : keyboard
  • Network devices
21
Q

What are key properties of Block: disk devices?

A
  • read/write blocks of data

- direct access to arbitrary block

22
Q

What are properties of Character: keyboard devices?

A
  • get/put character
23
Q

T/F

Network devices are somewhere in between block devices and character devices

A

True

24
Q

What is memory mapped I/O?

A

Part of ‘host’ physical memory is dedicated for device interactions

25
Q

What are Base Address Registers (BAR)?

A

These registers control the portion of the memory that’s reserved for device interactions (memory mapped I/O)

26
Q

What is the I/O port model?

A

A method for CPU to interact with devices that requires dedicated in/out instructions for device access

27
Q

What the two paths for devices to communicate to the CPU? Describe the pros and cons of each method.

A
Interrupt
 - interrupt handling steps
 \+ can be generated as soon as possible
Polling
 \+ when convenient for OS
 - delay or CPU overhead
28
Q

What is Programmed I/O (PIO)?

A

A method for the system to access/request an operation from a device.
There is no additional hardware support (involves CPU issuing instructions by writing into the command/data registers)
CPU “programs” the device
- via command registers
- data movement

29
Q

What is Direct Memory Access (DMA)?

A

Relies on DMA controller (special hardware)
CPU “programs” the device
- via command registers
- via DMA controls

30
Q

T/F

Memory can be swapped out to disk during a DMA transfer

A

F

Data buffer must be in physical memory until transfer completes