Question: Operating systems in C 6. Draw a picture that illustrates all the processes and their (possibly shared) streams in the following situation. A process pl
Operating systems in C
6. Draw a picture that illustrates all the processes and their (possibly shared) streams in the following situation. A process pl opens the file a.txt for input and it opens the file b.txt for output. Then process pl creates a pipe. Then pl creates a child process p2 with p2 inheriting a.txt, the pipe's input, and pl's stderr as its stdin, stdout and stderr. Then pl creates another child process p3 with p3 inheriting the pipe's output, b.txt and pl's stderr as its stdin, stdout and stderr Then pl closes its handles to a.txt and the pipe's output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
