Question: Write a program in C that creates a child using fork(). Add a piece of shared memory for both the parent and child processes. The
Write a program in C that creates a child using fork(). Add a piece of shared memory for both the parent and child processes. The child process continuously generates a random number and puts it in the shared memory. If the random number is over a pre-configured threshold, the child process sends a signal to the parent which reads the current value from the shared memory.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
