May 2013
Intermediate to advanced
456 pages
11h 56m
English
In Chapter 2, we looked at the basic I/O system calls in Linux. These calls form not only the basis of file I/O, but also the foundation of virtually all communication on Linux. In Chapter 3, we looked at how user-space buffering is often needed on top of the basic I/O system calls, and we studied a specific user-space buffering solution, C’s standard I/O library. In this chapter, we’ll look at the advanced I/O system calls that Linux provides:
poll() and select() system calls described in Chapter 2; useful when hundreds of file descriptors need to be polled from a single thread.
The chapter will conclude with a discussion of performance considerations and the kernel’s I/O subsystems.
Scatter/gather I/O is a method of input and output where a single system call writes to a vector of buffers ...