Question No. 1
15
Marks
Write the C Program which perform the inter-process communication between parent and the child process through a pipe() system call. Parent and child process do the following functionalities
· The parent process should write your VUID and program name through a write() system call.
· The child process should read the VUID and program name through the read() system call and finally write your VUID and program name on the screen through a write() system call.
Fork()
In the screenshot firstly compile your program.
· Then run the program.
Write the C Program which perform the inter-process communication between parent and the child process through a pipe() system call. Parent and child process do the following functionalities
· The parent process should write your VUID and program name through a write() system call.
· The child process should read the VUID and program name through the read() system call and finally write your VUID and program name on the screen through a write() system call.
Fork()
In the screenshot firstly compile your program.
· Then run the program.
SOLUTION FILE
Assignment Submission:
You are supposed to submit your assignment in .doc or Docx format. Any other formats like scan images, PDF, zip, rar, ppt, and BMP, etc will not be accepted.
You are required to send the screenshot and C code of question no. 1, be pasted in the same Word file.
Note: in case you have installed the Virtual Box you can take the screenshot as follows. Go to the view menu and click on Take Screenshot as follow.
Post a Comment
Don't Forget To Join My FB Group VU Vicky
THANK YOU :)