Question: Do it in LINUX ONLY A Process creates a child process. Child process will print out hello 0 hello 1 ..... 1 line per second.

Do it in LINUX ONLY

A Process creates a child process. Child process will print out "hello 0" "hello 1" ..... 1 line per second. After a certain number of seconds (user input), it kills itself WITH signal mechanism ONLY, don't use exit() on the child. You can use alarm() which may show the "Alarm clock". (Alarm clock may not appear depending on your environment. It is not required).

Output should look like

Do it in LINUX ONLY A Process creates a child process. Child

Thank You :)

hello 0 hello 1 hello 2 hello 3 hello 4 [... etc.] Alarm clock [may or may not appear ]

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!