A pipe is a kernel buffer with two ends, created by pipe(fd): bytes written to the write end fd[1] are read, in the same order, from the read end fd[0]. A read on an empty pipe waits; a write to a full pipe waits; on Linux a pipe holds 65 536 bytes, and a write of at most 4096 bytes is never mixed with another writer’s. A read returns 0, end of file, when the pipe is empty and no write end is open anywhere.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表