文件名称:process-management
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-05-23
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- qiang*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写程序,通过fork生成父子进程,子进程运行中显示当前系统的记录时钟,父进程运行时完成将数字1~100循环显示到标准输出流上。多次运行该程序,观察输出内容的变化。然后修改程序使得:
(1)始终为子进程先输出。
(2)始终为父进程先输出。
-Programming, parent and child processes generated via fork, the child process running clock displays the current system of records, the parent process runs complete cycle will be the number 1 to 100 to the standard output stream. Repeatedly run the program and observe the output changes. Then modify the program such that: (a) the child process is always the first output. (2) is always the first output of the parent process.
(1)始终为子进程先输出。
(2)始终为父进程先输出。
-Programming, parent and child processes generated via fork, the child process running clock displays the current system of records, the parent process runs complete cycle will be the number 1 to 100 to the standard output stream. Repeatedly run the program and observe the output changes. Then modify the program such that: (a) the child process is always the first output. (2) is always the first output of the parent process.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
parent.c
child.c