4 ms·
Modern pipes have to serve many lords. Besides bog-standard stdio redirection they also act as MPMC queues of semaphore tokens in build systems[0] but also as h
by the8472 7y ago
Modern pipes have to serve many lords. Besides bog-standard stdio redirection they also act as MPMC queues of semaphore tokens in build systems[0] but also as handle to a kernel-owned io-vecs for zero-copy DMA via sendfile, splice and friends.
[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ddad21d3e99c743a3aa473121dc5561679e26bb https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
- amenonsen 7y agoThat commit is a fascinating illustration of how pipes allow a model of inter-process interaction that goes beyond what you can do with temporary files, as well as how much further things have evolved from the days of the "very conservative locking" in readp/writep from the 6E Unix kernel.