Abstract
I/O is either block-oriented (such as file I/O) or stream-oriented (such as network I/O). Streams are often slower than block devices (such as fixed disks) and read/write operations often cause the calling thread to block until input is available or output has been fully written. To compensate, modern operating systems let streams operate in, which makes it possible for a thread to read or write data without blocking. The operation fully succeeds or indicates partial success. Either way, the thread is able to perform other useful work instead of waiting.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Electronic Supplementary Material
Below is the link to the electronic supplementary material.
Rights and permissions
Copyright information
© 2015 Jeff Friesen
About this chapter
Cite this chapter
Friesen, J. (2015). Selectors. In: Java I/O, NIO and NIO.2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1565-4_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1565-4_8
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1566-1
Online ISBN: 978-1-4842-1565-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)