Dear Computer scientists community, I have an issue
A professor asked us to do the following homework
using sleep(), using alarm(), signal(), and pause().
• Write a program that forks two processes in parallel (i.e., 1 parent and 2
childs). After 2 seconds, let child_1 signal child_2. This latter, should print
that he received a signal from child_1. After 3 seconds, child_2 should
signal the parent, and have this latter print that he received a signal from
child_2. Upon receiving the last signal, the parent kills his 2 children, and
the children should print a “Termination message” when killed.
And when I asked him about the parallel begining. he said that I should open two terminals in linux and run the program which would similate a parallel begining.
Do any one of you have a clue about what to do ? thanks in advance
1 Replies - 1120 Views - Last Post: 09 October 2011 - 06:36 PM
#1
program that forks two processes in parallal and let child 1 signal ..
Posted 09 October 2011 - 06:22 PM
Replies To: program that forks two processes in parallal and let child 1 signal ..
Page 1 of 1

New Topic/Question
Reply


MultiQuote



|