文件名称:pipe
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- ti***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
管道是UNIX系统和类UNIX系统都支持的通信机制,它也是进程间通信(IPC,Inter-Process Communication)最古老的形式之一。管道是半双工的,如果要实现双向通信,需要建立两个管道。管道只能用于具有亲缘关系的进程间进行通信,如果两个完全无关的进程进行通信,则需要使用有名管道,即FIFO。
本实验父进程从控制台读数据,并向管道中写字符串。子进程将父进程经由管道传输过来的字符进行大小写互转,然后将装换后的字符送回父进程。
实验环境
Redhat9.0-Pipeline is the UNIX system and UNIX-systems support the communication mechanism, it is also inter-process communication (IPC, Inter-Process Communication) is one of the oldest forms. Pipes are half duplex, and if you want to achieve two-way communication, you need to build two pipelines. Pipeline can only be used with a genetic relationship between the process of communication, if two totally unrelated processes to communicate, you need to use named pipes, or FIFO. In this study, the parent process read data from the console, write to the pipe string. Parent process child process will be over by the tunnel system conversion case characters, and then loaded back to the parent for the character after the process. Redhat9.0 experimental environment
本实验父进程从控制台读数据,并向管道中写字符串。子进程将父进程经由管道传输过来的字符进行大小写互转,然后将装换后的字符送回父进程。
实验环境
Redhat9.0-Pipeline is the UNIX system and UNIX-systems support the communication mechanism, it is also inter-process communication (IPC, Inter-Process Communication) is one of the oldest forms. Pipes are half duplex, and if you want to achieve two-way communication, you need to build two pipelines. Pipeline can only be used with a genetic relationship between the process of communication, if two totally unrelated processes to communicate, you need to use named pipes, or FIFO. In this study, the parent process read data from the console, write to the pipe string. Parent process child process will be over by the tunnel system conversion case characters, and then loaded back to the parent for the character after the process. Redhat9.0 experimental environment
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pipe.txt