Question: Install VirtualBox and the VM given. Startup the VM. You can find instructions for installing the Virtual Machine (VM) on the VirtualBox software here: setting

Install VirtualBox and the VM given. Startup the VM. You can find instructions for installing the Virtual Machine (VM) on the VirtualBox software here: setting up VirtualBox Download the code from APUE as shown in the last slide of the Process API class. Then go to the proc/ directory. Modify the test1.c file, such that all the processes (including children) print out their process IDs. You can add fprintf or printf statements for this purpose. You may use cLion inside VM, or any other text editor of your choice, such as vi or emacs. There is also a neat text editor named Kate available in Ubuntu (you can find it in the menu). In cLion you can open a single .c file without having to create a whole new project and modify the single .c file. Find the test1.c file and open it in the text editor tool you choose to use. In the command line terminal (shell), you can compile with "make all" . This is going to create an executable file named "test1". You can run it with "./test1". A longer line to compile the test1.c code on the command line terminal (shell) is with: gcc -ansi -I../include -DLINUX -D_GNU_SOURCE -Wall -o test1 test1.c -L../lib -lapue This will produce the output file "test1" and you can run it with "./test1". Submit the test1.c file (source code file) that you modified.

Below will be the test1/ file . Please help modify the code as per required.Install VirtualBox and the VM given. Startup the VM. You can findinstructions for installing the Virtual Machine (VM) on the VirtualBox software here:

/* parent */ /* terminate with exit status 1 #include "apue.h" 2 3 int 4 main(void) 5{ 6 pid_t pid; 7 8 if ((pid = fork())

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!