文件名称:Experiment_Signal
介绍说明--下载内容均来自于网络,请自行研究使用
创建两个子进程,在进程执行中让父进程捕获键盘上传来的中断信号。
当多捕捉到中断信号后,父进程向两个子进程发出信号,子进程捕捉到该信号后分别输出:
(1)“child process1 is killed by parent!”
(2)“child process2 is killed by parent!”
-Create two sub-processes, in the process of implementation so that the parent process to capture the keyboard interrupt signals upload. Interrupt signal when the multi-capture, the parent process signals to the two sub-processes, sub-process to capture the output of the signal are: (1) " child process1 is killed by parent!" (2) " child process2 is killed by parent! "
当多捕捉到中断信号后,父进程向两个子进程发出信号,子进程捕捉到该信号后分别输出:
(1)“child process1 is killed by parent!”
(2)“child process2 is killed by parent!”
-Create two sub-processes, in the process of implementation so that the parent process to capture the keyboard interrupt signals upload. Interrupt signal when the multi-capture, the parent process signals to the two sub-processes, sub-process to capture the output of the signal are: (1) " child process1 is killed by parent!" (2) " child process2 is killed by parent! "
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Experiment_Signal.c