In UNIX, a pipe is created by using: pipe(fd[]);
Where fd[] is defined as:
int fd[2];
Such that fd[0] is a read end of the pipe and fd[1] is the write end.
Now consider a parent process using the following system call to write to a pipe:
write(fd[WRITE_END], write_message, strlen(write_msg)+1);
If the message to be written is "Hello Class!", which parameter in the write() system call has a value equal to "Hello Class!"?
write_message
WRITE_END
none, another variable or a printf() is needed.
depends on which variable is given that value.

Solved
Show answers

Ask an AI advisor a question