Week 8 Flashcards

1
Q

What is a bus?

A

A bus is a common set of wires that multiple devices share

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

What is a port?

A

A port is a connection point a device uses to connect to a computer system.

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

What is a controller?

A

A controller is a collection of electronics that can operate a port, a bus, or a device. For example, a serial-port controller is a simple device controller

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

What is polling?

A

Polling is where the CPU keeps on checking if the device needs attention. Polling becomes inefficient when it is attempted repeatedly yet rarely finds a device ready for service, while other useful CPU processing remains undone

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

What does an interrupt occur?

A

An interrupt occurs when the I/O device notifies the CPU that it requires its attention. The CPU will then hold its current task and starts executing the corresponding interrupt.

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

What is the interrupt request line?

A

The interrupt request line is a wire in the CPU hardware that the CPU senses after executing every instruction. When the interrupt-request line is triggered by an I/O device the CPU performs a state save and jumps to the interrupt-handler routine. The device controller raises an interrupt by asserting a signal on the interrupt request line, the CPU catches the interrupt and dispatches it to the interrupt handler, and the handler clears the interrupt by servicing the device. Interrupt-driven I/O is now much more common than polling

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

What is DMA?

A

Direct memory access is the process of transferring data without the involvement of the CPU itself. This enables the device to perform tasks without interrupting the CPU. A DMA controller manages the data transfers between memory and the various devices. The CPU tells the DMA controller the source and destination of the transfer and size of data then goes on with other work.

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

What is application I/O interface?

A

I/O system encapsulates device behaviours in generic classes
 Device-driver layer hides differences among I/O controllers
 New devices taking already-implemented protocols need no extra work
 Each OS has its own I/O subsystem structures and device driver frameworks.

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

What are block and character devices?

A
  1. Block devices include things like disk drives and their commands include read, write, and seek
  2. Character devices include keyboards, mice, and serial ports their commands include get(), put().
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are network devices?

A

Network devices vary enough from block and character devices enough to have their own interface.

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

What is buffering?

A

Buffering is where data is stored in memory while transferring between devices to cope with:
- Device speed mismatch
- Device transfer mismatch
- To maintain “copy semantics”

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

What is caching?

A

Caching is a region of fast memory that holds a copy of the data and is key to performance.

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

What is spooling?

A

Spooling is holding output for a device if the device can serve only one request at a time.

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

How can devices and I/O transfers fail?

A

Transient reasons - network becomes overloaded
Permanent reasons - disk controller becomes defective

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

What are the three types of data files?

A
  1. Numeric
  2. Character
  3. Binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the different file attributes?

A

Name – only information kept in human-readable form
Identifier – unique tag (number) identifies file within file system
Type – needed for systems that support different types
Location – pointer to file location on device
Size – current file size
Protection – controls who can do reading, writing, executing
Time, date, and user identification – data for protection, security, and usage monitoring

17
Q

What are the two access methods?

A
  1. Sequential access - Information in the file is processed in order, one record after the other. This mode of access is by far the most common
  2. Direct Access - The direct access method is based on a disk model of a file since disks allow random access to any file block, For direct access, the file is viewed as numbered sequence of blocks or records.
18
Q

How are directories organised?

A

Directories are organised logically to obtain:
- Efficiency - locating a file quickly
- Naming - convenient to users
- Grouping - logical grouping of files by properties

19
Q

What are the different types of directories?

A
  1. Single-level directory - Used by all users, consequently has naming problem
  2. Two-level directory - There are separate directories for each user, files can have the same name but must be under different user directory. Also has efficient searching
  3. Tree-structured directory -
20
Q
A