Operating System (CS604)

Assignment # 02
Fall 2021

 

Total marks = 15

 

Deadline Date: 23/12/21

 


Please carefully read the following instructions before attempting the assignment.

 

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or the file is corrupt.
  • Strict action will be taken if the submitted solution is copied from any other student or the internet.

 

You should consult the recommended books to clarify your concepts as handouts are not sufficient.

 

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.

 

OBJECTIVE

The objective of this assignment is to provide hands-on experience of:

·         Read/Write System call

·         Pipe system call

 

 

NOTE

 

Assignement No. 2 covers 8-13 lectures. No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is recommended to upload the solution file at least two days before its closing date.

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.

 

 

If you find any mistake or confusion in the assignment (Question statement), please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard.

 

For any query, feel free to whatsapp

03037155010


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.


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 :)

Previous Post Next Post