Question: Q3: Write a C program: Use the system call fork() to create two child processes A and B, and then call signal to make the
Q3: Write a C program: Use the system call fork() to create two child processes A and B, and then call signal to make the parent process capture the interrupting signals( pressing Del" key by user). When parent process gets "Del pressing event, send signals 16 and 17 respectively to its two children processes A and B. The two children processes print the following information respectively after getting signals from the parent, and then quit itself. Child process A is killed by parent!!! Child process B is killed by parent!!! Parent process calls wait() to wait for the termination of two children processes, and then print the following information, finally terminate the program. Parent process is killed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
