Liste des Groupes | Revenir à col misc |
On 12/17/24 8:23 PM, Lawrence D'Oliveiro wrote:On Tue, 17 Dec 2024 13:34:30 +0000, Geoff Clare wrote:
With a pipe or FIFO, you just use simple read and write operations
and the system handles all the messy stuff for you. If the pipe
reaches capacity, write blocks until there is room to write some
more; if the pipe becomes empty, read blocks until there is more
data available; when read returns EOF that's the end of the data.
Yup. Furthermore:
* When the last writer closes its end, any remaining read attempts
get EOF.
* When the last reader closes its end, any remaining write attempts
get “broken pipe”.
But you're still limited to the amount of RAM the system can
access.
These days that's probably a LOT - but might NOT be,
esp for 'embedded' type boards like the older PIs,
BBBs and such. Never assume the user has essentially
infinite RAM.
Les messages affichés proviennent d'usenet.