文件名称:guandaotongxin
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1、 了解系统调用pipe()的功能和实际原理
2、 编写一段程序,使用管道实现父子进程之间的通信
a) 使用系统调用fork()创建一个子进程
b) 子进程调用函数write()向父进程发送自己的进程ID和字符串” s sending a message to parent.\n”。
c) 父进程调用函数read()通过管道读出子进程发来的消息,将消息输出屏幕,然后终止
-1, the understanding of the system call pipe () function and the principle of two actual preparation of a procedure, Pipeline father used to achieve the process of communication between a) the use of system calls fork () to create a child process b) Import Cheng called function write () to send their parent process ID of the process, and the string "'s sending a m essage to parent. \ n. " C) the process of the function call father read () through the pipeline read to the child process the news, the news output screen, then terminated
2、 编写一段程序,使用管道实现父子进程之间的通信
a) 使用系统调用fork()创建一个子进程
b) 子进程调用函数write()向父进程发送自己的进程ID和字符串” s sending a message to parent.\n”。
c) 父进程调用函数read()通过管道读出子进程发来的消息,将消息输出屏幕,然后终止
-1, the understanding of the system call pipe () function and the principle of two actual preparation of a procedure, Pipeline father used to achieve the process of communication between a) the use of system calls fork () to create a child process b) Import Cheng called function write () to send their parent process ID of the process, and the string "'s sending a m essage to parent. \ n. " C) the process of the function call father read () through the pipeline read to the child process the news, the news output screen, then terminated
(系统自动生成,下载前可以参看下载内容)
下载文件列表
a.exe
hello.c--最基本的c程序 test.c--简单进程的创建 callexec.c--外部调用 pipe.c--管道通信.txt
pipe.c
hello.c--最基本的c程序 test.c--简单进程的创建 callexec.c--外部调用 pipe.c--管道通信.txt
pipe.c