Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions