![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Communication over firewall | ajnabi | Security | 5 | 09-02-2008 12:40 PM |
| Communication Failures | barun agarwal | HP-UX | 1 | 10-01-2007 05:48 AM |
| Interprocess communication status | jerardfjay | UNIX for Advanced & Expert Users | 4 | 07-15-2005 08:49 AM |
| Interprocess communication using pipes and fork | scmay | UNIX for Advanced & Expert Users | 2 | 10-14-2004 06:44 PM |
| serial communication | KrazyGuyPaul | UNIX for Dummies Questions & Answers | 1 | 01-23-2003 10:50 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Earlier I posted a question regarding this issue. I managed to go a step further. Anyway, this is another similar question
Write a programme that creates a ring of three processes connected by pipes. The first process should prompt the user for a string and then send it to the second process . The second process should reverse the string and send it to the third process. The third process should convert the string to uppercase and send it back to the first process. When the first process gets the resultant string, it should display it to the terminal. When this is done, all three processes should terminate I managed to write from A->b->c, but I do not know how to join from C -> A. mY lecturer asked me to create another pipe in advance before A starts fork(), and I did so, but although I pass in the message I do not get any result. On top of that, the B->C is also affected, it is not showing any result anymore. Anyone able to help on this? Greatly appreciate it. |
| Forum Sponsor | ||
|
|