文件名称:signal to killchild
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:1.24kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
用系统调用signal()让父进程捕捉键盘上来的中断信号(按Ctrl-C键);当捕捉到中断信号后,父进程用系统调用kill()向两个子进程发出信号,子进程捕捉到信号后分别输出下列信息后终止: Child Process 1 is Killed by Parent! Child Process 2 is Killed by Parent! 父进程等待两个子进程终止后,输出如下的信息后终止: Parent Process is Killed!-with system call signal () so that the process of capturing the father onto the keyboard interrupt signal (Ctrl-C bond); When the interrupt signal capture, the father of the process of using system calls kill () to process two signals son, the child process to capture the signal output respectively after the termination of the following information : Process is a Child Killed by Parent! Process 2 Child is Killed by Parent! the process of waiting for the father of two-after the termination process, the following information output after termination : Parent Process is Killed!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二次/homeworkb.c
第二次/homeworkb2.c
第二次
www.dssz.com.txt
第二次/homeworkb2.c
第二次
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.