Computer Science, asked by pranotishirbhate06, 8 hours ago

2.
Write a C program that initializes a global integer to 2 and then creates a child process.
Print the process id and value of the integer in the parent process and child process. Let
the child process change of the integer to 9 and exit. The parent process has to wait for
the child process to exit. After the child process exits, print the value of the integer in
the parent process. Observe and understand the outputs. (Suggested System calls
fork, wait, getpid )​

Answers

Answered by dashujaryal07
6

aunghehrjdjejejrjrjrjd

Similar questions