文件名称:Code
介绍说明--下载内容均来自于网络,请自行研究使用
一、 编写一段程序,使其现实进程的软中断通信。
1.要求:使用系统调用fork()创建两个子进程,再用系统调用signal()让父进程捕捉键盘上来的中断信号(即按DEL键);当捕捉到中断信号后,父进程用系统调用Kill()向两个子进程发出信号,子进程捕捉到信号后分别输出下列信息后终止:
Child Processll is Killed by Parent!
Child Processl2 is Killed by Parent!
父进程等待两个子进程终止后,输出如下的信息后终止:
Parent Process is Killed!
-Third, write a program to process the reality of soft interrupt communications.
1. Requirements: use of system calls fork () to create two sub-processes, and then the system call signal () allows the parent process to capture up keyboard interrupt signal (ie DEL key) when the capture interrupt signal, the parent process with a system call Kill () signals to the two sub-processes, respectively, after the termination of the output of the following information to capture the signal after the child process:
Child Processll is Killed by Parent!
Child Processl2 is Killed by Parent!
The parent process to wait for termination of two sub-processes, after the termination of the output of the following information:
Parent Process is Killed!
1.要求:使用系统调用fork()创建两个子进程,再用系统调用signal()让父进程捕捉键盘上来的中断信号(即按DEL键);当捕捉到中断信号后,父进程用系统调用Kill()向两个子进程发出信号,子进程捕捉到信号后分别输出下列信息后终止:
Child Processll is Killed by Parent!
Child Processl2 is Killed by Parent!
父进程等待两个子进程终止后,输出如下的信息后终止:
Parent Process is Killed!
-Third, write a program to process the reality of soft interrupt communications.
1. Requirements: use of system calls fork () to create two sub-processes, and then the system call signal () allows the parent process to capture up keyboard interrupt signal (ie DEL key) when the capture interrupt signal, the parent process with a system call Kill () signals to the two sub-processes, respectively, after the termination of the output of the following information to capture the signal after the child process:
Child Processll is Killed by Parent!
Child Processl2 is Killed by Parent!
The parent process to wait for termination of two sub-processes, after the termination of the output of the following information:
Parent Process is Killed!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
._Code.docx
Code.docx