文件名称:Code
-
所属分类:
- 标签属性:
- 上传时间:2015-05-13
-
文件大小:67.23kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一、 编写一段程序,使其现实进程的软中断通信。
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
Code.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.