I/O Techniques, Buffering and Scheduling Flashcards

1
Q

What are the three main I/O techniques?

A

1) Programmed I/O, 2) Interrupt-driven I/O, 3) Direct Memory Access (DMA).

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

What is programmed I/O?

A

The CPU actively waits and checks the status of the I/O device during data transfer (polling).

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

What is interrupt-driven I/O?

A

The I/O device signals the CPU when it is ready, freeing the CPU from constant checking.

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

What is Direct Memory Access (DMA)?

A

A method where data is transferred directly between memory and device without CPU involvement.

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

What are the advantages of DMA?

A

Faster data transfers and reduced CPU load.

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

What is I/O buffering?

A

Using temporary memory areas (buffers) to hold data during I/O transfers to manage speed differences.

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

Why is buffering important in I/O systems?

A

To smooth data flow between slow I/O devices and fast CPUs, reducing idle time.

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

What are types of I/O buffering?

A

1) Single buffering, 2) Double buffering, 3) Circular buffering.

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

What is double buffering?

A

Using two buffers so one can be filled while the other is being emptied — helps improve throughput.

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

What is I/O scheduling?

A

The method used to determine the order in which I/O operations are performed.

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

What are common I/O scheduling strategies?

A

1) First-Come, First-Served (FCFS), 2) Shortest Seek Time First (SSTF), 3) SCAN (Elevator algorithm), 4) C-SCAN.

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

What is the SCAN (Elevator) algorithm?

A

An I/O scheduling strategy that moves the disk arm in one direction servicing requests until it reaches the end, then reverses.

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