Description: 编制一段程序,使其实现进程的软中断通信。
要求:使用系统调用fork()创建两个子进程,再用系统调用signal()让父进程捕捉键盘上来的中断
信号;当捕捉到中断信号后,父进程用系统调用kill()向两个子进程发出信号,子进程捕捉到信号后
分别输出下列信息后终止:
Child Process11 is Killed by Parent!
Child Process12 is Killed by Parent!
父进程等待两个子进程终止后,输出如下的信息后终止:
Parent Process is Killed!
To Search:
- [linux] - Operating principle of the four process
- [osruanzhongduan] - Experimental process, the operating syst
File list (Check if you may need any files):
软中断通信
..........\a3.c
..........\软中断通信.txt