Question: Q 1 . Write a program using dup ( ) / dup 2 ( ) to assign 1 as the duplicate file descriptor. Q 2
Q Write a program using dupdup to assign as the duplicate
file descriptor.
Q Write a program to duplicate a file descriptor of a file. Use the old
file descriptor to read the first characters and the new file descriptor
to append some new content to the file.
Q Write a program using fork system call to create two child of the
same process ie Parent P having child process P and P
Q Write a program using fork system call to create a hierarchy of
process such that P is the child of P and P is the child of P
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
