Question: Programming Exercise Q3.Use your linux virtual machine to create unlimited number of child processes, observe what happens. Before running the experiment, type sync command to

 Programming Exercise Q3.Use your linux virtual machine to create unlimited number

Programming Exercise Q3.Use your linux virtual machine to create unlimited number of child processes, observe what happens. Before running the experiment, type sync command to the shell to flush the file system buffers to disks to avoid ruining the file system. The following C code can be used to fork a single child process. Modify, recompile, and run the modified c code to test your system. Deliverable for this experiment includes: Copy of the modified C code Copy of the executable file A short description on how your system handle the test, pointing out what modification you have to applied as you test and run the C code. #include #include #include void forkexample // child process because return value zero if (fork()=0) printf("Hello from Child! "); // parent process because return value non-zero. else printf("Hello from Parent! "); int main() forkexample(); return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!