登录
首页 » Unix_Linux » test2

test2

于 2021-03-10 发布 文件大小:1KB
0 94
下载积分: 1 下载次数: 3

代码说明:

  Linux软中断通信。 由父进程创建两个子进程,通过终端输入Crtl+组合键向父进程发送SIGQUIT软中断信号或由系统时钟产生SIGALRM软中断信号发送给父进程;父进程接受到这两个软中断的其中某一个后,向其两个子进程分别发送整数值为16和17软中断信号,子进程获得对应软中断信号后,终止运行;父进程调用wait()函数等待两个子进程终止,然后自我终止。(Linux software interrupt communications. By the parent process creates two sub-processes, through the terminal input Crtl+ key combination to the parent process sends SIGQUIT soft interrupt signal generated by the system clock or soft interrupt SIGALRM signal is sent to the parent process parent process receives one of these two soft interrupt one After two sub-processes are sent to its integer value of 16 and 17 soft interrupt signal, the child process to obtain the corresponding soft interrupt signal, terminate the operation parent process calls wait () function to wait two child process terminates, then the self-termination.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103816会员总数
  • 64今日下载