On creation, a UNIX process normally inherits three file descriptors from its parent: stdin, stdout, and stderr.
Fantastic news! We've Found the answer you've been seeking!
Question:
On creation, a UNIX process normally inherits three file descriptors from its parent: stdin, stdout, and stderr. (i) Which additional kernel interactions are involved if the user redirects a process’ stdout to a file? (ii) Why is it typically more efficient to connect two processes using a pipe rather than redirecting the first’s stdout to a file to which the second’s stdin is also redirected?
Related Book For
Posted Date: