Question: The parent won't check 0 ( null character ) in the data that the child will write to a file so the parent will
The parent won't check null character in the data that the child will write to a file so the parent will print "ello from the child"
The parent moves the offset back bytes so that it can read the message
If the child writes the data, the offset of the file descriptor will increase
Once forked the parent and the child will use the same file descriptor number copied
The parent won't read any data from the file because the child will close the file descriptor.
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
