CS FundamentalsHardGATE CS
Which kind of I/O call returns immediately and later notifies the process (e.g. via a signal, callback or completion queue) when the data has been transferred?
- A. Blocking I/O
- B. Non-blocking I/O that returns EAGAIN
- C. Asynchronous I/O
- D. Programmed I/O
Correct answer: C. Asynchronous I/O
Non-blocking I/O returns at once with whatever is available (or EAGAIN), and the caller must retry or poll; asynchronous I/O starts the whole transfer and signals completion later (e.g. io_uring, POSIX AIO).
More Operating Systems questions
- An interrupt handler is split into a top half and a bottom half (e.g. softirq, tasklet, workqueue). Why?
- Which is a valid reason for a device driver to use polling instead of interrupts?
- What is the main purpose of the I/O MMU (IOMMU) in modern systems?
- A process holds a spinlock and is preempted on a single-CPU system; the next scheduled thread tries to take the same spinlock. What…
- Read-copy-update (RCU) is used for read-mostly kernel data. What is its key idea?
- A reader-writer lock is used where reads are 99% of operations and each read is very short. Why might it perform WORSE than a plain mutex…