PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] Pipe function
Date: Thursday, 26 Nov 2020, 12:36:18


    > Message Posted By: Unknown
    >
    > With the pipe() function, could there be a problem of one process trying
    > to read from a pipe that hasn't been written to yet? For example, if the
    > process trying to read from the pipe reaches the read() call before
    > another process has reached its write() call?

A read from an empty pipe with at least one open write
descriptor does not return until something is written
or the last write description is closed.

--Stan-
PREV INDEX NEXT