Question: C++ Write a program that opens a file (with the open() system call) and then calls fork() to create a new process. The child process
C++ Write a program that opens a file (with the open() system call) and then calls fork() to create a new process. The child process should iterate 40 times writing child to the file. The parent process should iterate 40+ times writing parent to the file. Both processes must then close the file and exit with EXIT_SUCCESS.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
