Write the C Program in which the parent process will create the child process through fork) system
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Posted Date: