Question: [ 2 0 points ] Write a C C + + program that is able to carry out the following tasks: a ) The parent

[20 points] Write a CC++ program that is able to carry out the following tasks:
a) The parent process creates two child processes, named as Alice and Bob, respectively.
b) The parent prints out the process ID of Alice and Bob when the parent creates them. The output should look as follows:
From Parent: Alice ID is xxxx //comment: here xxxx is Alice's PID
From Parent: Bob ID is yYyy // here yYyY is Bob's PID
c) The parent waits for the two children to finish their work before exiting.
d) Child Alice prints out the following string, then exits.:
Hi, I am Alice
e) Child Bob prints out the following string, then exits:
Hi, I am Bob
[ 2 0 points ] Write a C C + + program that is

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!