如何在c Linux中编程以通过命名管道在进程之间进行通信 [英] how to programm in c Linux for Communication between processes by named pipe

查看:126
本文介绍了如何在c Linux中编程以通过命名管道在进程之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我没有任何关于它的信息,但我必须写这个...非常感谢,如果你帮我在这里描述我该怎么做...谢谢



4程序,其名称为P1,P2,P3,P4写入(每个程序在OS中创建一个进程),并且在它们之间进行通信时使用命名管道类型中的3个管道,其名称为Pipe1, Pipe2,Pipe3 ... process1必须从/ home目录中的名称input.in读取文件中的一行,然后通过pipe1将其送到第二个进程......第二个进程必须将''*'转换为''。 ''和''。''''''''然后通过pipe3将结果发送到第三个进程...第三个进程应该将小写字母转换为大字母然后反过来然后通过Pipe3必须将结果发送到第四个进程...最后第4个进程将结果保存到输出文件中,该文件名为Output.out....

i have a project which i dnt have any information on it but i have to write this ... so many thanks if u help here to describe me what to do exactly ... thanks

4 program which name is P1,P2,P3,P4 write ( each program create a process in OS) and for communicate between them use 3 pipe in Named Pipe type which names are Pipe1 , Pipe2 , Pipe3 ... process1 must read a line from a file by name "input.in" in /home directory then through pipe1 give it to second process ... and second process must convert ''*'' to ''.'' and ''.'' to ''*'' then send result to third process by pipe3 ... and third process should convert small letters to big letters and inverse then through Pipe3 must sent the result to 4th process .... and at last 4th process save the result into an output file which name is "Output.out" ....

推荐答案





看看这里:

http://www.cs.fredonia.edu/zubairi/s2k2/csit431/more_pipes.html [ ^ ]


这篇关于如何在c Linux中编程以通过命名管道在进程之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆