CS604 Assignment 01 Spring 2021 Solution / Discussion
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:
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.
Secondly, you are required to send Question no. 1 and Question no. 2 in the same screenshot. Furthermore C code of Question no. 1 must also be pasted in the same word file after the screenshot.
The objective of this assignment is to provide hands-on experience of:
· The basic concept of Process creation in Linux
· Useful Linux commands
· System calls and their usage in Linux
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.
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 email at:
Questions No 01 15 marks
Write the C Program in which the parent process will create the child process through fork() system call. You need to perform the following activities in both child and parent processes respectively.
Questions No 02 05 marks
You are required to print the complete path name of the current working directory. And then create two directories as per your name and your VUID. Finally by using the ‘ls’ command display the list of directories.
In the screenshot you need to perform the following steps.
Following is the sample screenshot for both Question No. 1 and Question No. 2.
Furthermore C code of Question no. 1 must also be pasted in the same word file, after the screenshot.
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.
See the following link for writing and compiling your first program in Linux.
See the following link for installation of Virtual Box and Ubuntu (LInux) on your system.
Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.
Email, cell no, facebook personal links, links sharing for promotion any kind of site & youtube direct link sharing is not allowed at the site.
Although If you want to share the youtube video, then paste the embed codes here of the youtube video. Otherwise your comment / reply will be deleted. As well as your account will be deleted from the site. Thanks for understanding.
CS604 Assignment 1 Solution Spring 2021 Code
int main (void)
printf("In Parent Process \nVUID:" MC190200409\nNAME: \n);
printf(Existing the Parent Process");
int n = 3;
printf(In Child Process\nMultiplication table of 3");
printf(%dX%d= %d, \n" i,n,i*n);
#CS_604_Assignment_1 #Sudo_Apt_Error_fix_Problem #CS604
CS604 Assignment 1 Solution 2021 || How to Fix Sudo Apt Install Error || CS604 Assigment Spring 2021