首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 用系统调用signal()让父进程捕捉键盘上来的中断信号(按Ctrl

用系统调用signal()让父进程捕捉键盘上来的中断信号(按Ctrl

资 源 简 介

用系统调用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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP