Question: Indicate whether the following statements are true or false: _ _ _ _ _ _ Writing a message of size greater than PIPE _ BUF

Indicate whether the following statements are true or false:
______ Writing a message of size greater than PIPE_BUF bytes to a pipe is
susceptible to being corrupted due to internal shuffling among other writes.
______ If a process attempts to write to a pipe, but no process currently has the pipe
opened for reading, the process calling write() will be terminated via
delivery of a SIGPIPE signal.
______ If a process attempts a read() on an empty pipe, and no process currently
has the pipe opened for writing, the read() operation will return 0.
______ If a process attempts to read() on a pipe containing data, and no process
currently has the pipe opened for writing, the read() request will return 0.
______ If a process opens a FIFO using the O_WRONLY flag, open() will block and
wait unless/until a process opens the same FIFO for reading.
______ When a process terminates, any zombie or orphaned children will be
adopted and waited on by the init (PID =1) process.
______ A write() error will occur if a process seeks past the end of a file, then
attempts to write at this location.
______ Suppose we perform the following system call: dup2(a,b). If the file
descriptor referred to by b is already open, the call will fail and return -1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!