Questions: Asynchronous I/O (AIO) Operations

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A web server must handle 100,000 simultaneous connections, each waiting for a slow database response. Which I/O model is most resource-efficient?

ABlocking I/O with one thread per connection — simplest programming model
BAsynchronous I/O with an event loop — a small number of threads initiate all operations and react to completions
CBlocking I/O with a fixed thread pool of 1,000 threads
DPolling every connection in a tight loop to avoid blocking entirely
Question 2 Multiple Choice

What fundamentally distinguishes asynchronous I/O from synchronous (blocking) I/O?

AAsynchronous I/O uses DMA to transfer data without CPU involvement; blocking I/O uses the CPU directly
BThe process continues executing immediately after issuing an async I/O request rather than waiting for completion
CAsynchronous I/O bypasses the operating system kernel for faster data transfer
DAsynchronous I/O is only available for disk operations, not network I/O
Question 3 True / False

In asynchronous I/O, the calling process is suspended and can seldom execute other work until the I/O operation finishes.

TTrue
FFalse
Question 4 True / False

A single-threaded event loop using asynchronous I/O can handle more concurrent I/O-bound connections than a multi-threaded program using blocking I/O, because AIO eliminates the per-thread memory and context-switching overhead.

TTrue
FFalse
Question 5 Short Answer

Explain why the blocking I/O model becomes impractical for high-concurrency servers, and how asynchronous I/O solves this problem.

Think about your answer, then reveal below.