Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started