|
-
November 10th, 2011, 04:08 AM
#1
How to Write a program to communicate between two processes using the pipe.
I am learning operating system, this is a really big trouble for me, i do not how to write that kind of program above in C++, if anyone know the answer please post complete "code" that write in C++, this is urgent, thank you so much, this is question:
Write a program to communicate between two processes using the pipe as follows:
A process read from the file consists of multiple consecutive sequences, each sequence of the operations +, -, *, / and 2 mathematics
out. For example, the file will save the string like this:
2 + 3
1 to 2
4 * 6
15 / 3
Then the first process of the first sequence send(transmit) data for the second process . the second process
perform calculations and return the resulting string back to the first process to record the
file as follows:
2 + 3 = 5
1-2 = -1
4 * 6 = 24
15 / 3 = 5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|