I/O

Input and output: any time a program reads or writes data outside its own memory, such as files, networks or the terminal.

In more detail

I/O is slow compared with calculation, so a program that waits for it wastes time. Asynchronous I/O lets a program keep working while the operation completes.

Examples

In the browser: I/O is slow compared with computation. Browser I/O such as network and IndexedDB is asynchronous, while localStorage does synchronous disk I/O on the main thread.
Node.js is designed around starting I/O and continuing with other work while it completes.

Related terms

Taught in

References