OPERATING SYSTEMS 3 Install Linux on a virtual machine Virtu

OPERATING SYSTEMS

3] Install Linux on a virtual machine (VirtualBox) in your system according to the guidelines from earlier in the semester. Include screen shots showing your name as a VM name and as the base directory for your homework in the homework document described at the end of these instructions. Note: if you already had a Linux box at your disposal, you can use that machine.

[3] Create and run a program (fork.c) that generates two child processes for every request by calling fork() function. Show the screen capture that you test.

Each child process runs at least 10 seconds to handle a request.

Please show screen capture where a parent process and at least two child processes are running (use “ps –ef | grep ”)

Should use “make” to compile and link. Create a “Makefile”.

Solution

Here\'s a code to create 2 child process and keeping them alive for 10 seconds simultaneously.
makefile =>

all: fork.c

     gcc -o fork fork.c

clean:

      rm fork

OPERATING SYSTEMS 3] Install Linux on a virtual machine (VirtualBox) in your system according to the guidelines from earlier in the semester. Include screen sho

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site