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


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.

  • In the child process, you need to print the table clepening upon the last digit of your VUID. For example in VUID mc123456789,
    the last digit is 9. So in that case table of 9 should be printed in the child process.
  • In the parent process, you need to print your VUID and Name and a simple message like "In parent process'. Secondly. in the
    parent process call the wait) system call so that the child process can print the required table.

Q.2 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 Is' command display the list of directories.

In the screenshot you need to perform the following steps.

  • In the screenshot firstly compile the program as given in Question No. 1.
  • Then run the program.
  • As per the Question no. 2 print current working directory then findally create and display required directories.

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!