文件名称:pipe
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:899byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
管道是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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
