Question: Question 3 Write a simple program to create three processes using fork ( ) commands. Use any THREE ( 3 ) of the six system

"Question 3
Write a simple program to create three processes using fork() commands. Use any THREE (3) of the six system calls to show how each child process executes new subprograms using execs minions.
Show the output of each of the child process with different data samples.
[20 Marks]
Question 4
Compare the bus topology and the star topology. Draw a complete diagram for any given environment for each of the LAN topology.
Using your own assumptions and scenario for each topology to illustrate the concept. Provide the details requirements including the hardware and infrastructure to set-up the proposed solution.
[20 Marks]
Question 5
Write XB12 a simple program in your Linux environment using C++ to identify PID, PPID and GID for the processes created in Question 3 and display the real and effective user ID.
[12 Marks]
Modify the program you wrote for Question 3 and include the alarm system call to kill one of the processes that you had created in 30 second.
[8 Marks]"

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 Programming Questions!