Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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" ....
Posted
Comments
lida zar 1-Dec-12 13:12pm    
please someone help me to write this program :(
Nelek 1-Dec-12 13:52pm    
You should carefully read this:
what have you tried?[^]
and
Homework[^]

We have already helped you in other questions, but this is not how it works. At least show us, that you are trying.
You just post the requirements of the excercise and then start adding comments every 10 minutes. If you nerve the people who should help you, then you are not going to get any help.
People is here without being payed, in their free time after a hard day at work. So please don't flip out if you don't get any answer in the following 10 minutes. Users are all around the world, and the one wanting to help you maybe is sleeping at this moment.
lida zar 1-Dec-12 14:04pm    
ok thanks for ur advice ... now i need to know how to read a line from .in file ...? and me trying for this website ... i don't know it can help me or not

http://www.cs.utah.edu/~germain/PPS/Topics/C_Language/file_IO.html


1 solution

 
Share this answer
 
Comments
lida zar 1-Dec-12 13:04pm    
thanks but its about only named pipe... first i need to create a process ... right? how its possible?
lida zar 1-Dec-12 13:23pm    
how to program this then ?
Thomas Daniels 1-Dec-12 13:25pm    
I don't do all work.
I post a link to the pipes, because in the title I read the word "pipes", so I think that's the most important.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900