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