Persistence: Storage Devices & File Systems Flashcards

1
Q

What is the purpose of storing an operating system on a device like a hard drive or SSD?

A

Answer: To save data in a way that survives even when the power is turned off and to load the OS into memory when the computer starts.

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

What is the role of General Input/Output (I/O) in a computer system?

A

Answer: To manage inputs from input devices and outputs to output devices, connecting hardware components with the central CPU through various types of bus (interconnect).

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

Why do I/O interfaces evolve quickly over the decades?

A

Answer: Due to changes in technology and the need for more efficient, faster communication protocols.

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

What is the function of a controller inside an I/O device?

A

Answer: To run firmware code that implements the device’s functionality, controls the device media, and provides an interface to the rest of the system.

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

Describe the difference between polling and interrupts in CPU-device communication.

A

Answer: Polling involves the CPU repeatedly checking the device’s status, while interrupts involve the device sending a signal to the CPU when it’s ready or has completed a task.

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

What are the drawbacks of using polling and interrupts?

A

Answer: Polling can waste CPU time, and too frequent interrupts can overwhelm the CPU (leading to livelock).

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

Explain the concept of Direct Memory Access (DMA) in I/O operations.

A

Answer: DMA is a special hardware component that orchestrates transfers between devices and main memory without much CPU intervention.

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

What is memory-mapped I/O?

A

Answer: A method where modern computers treat device controls as if they’re part of the regular memory, allowing the CPU to interact with devices using common memory operations.

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

What is the purpose of the OS software stack in terms of I/O operations?

A

Answer: To hide the complexities of I/O protocols from users and provide a cleaner interface through multiple layers of abstractions, including device drivers.

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