Quote:
Originally Posted by rajesh78
// Why it is required??
process means what I think is two exe.
but how it is possible if we are writing two programs ( one is reading a string and other is displaying a string) GENERALY THIS IS NOT REQUIRED IN ANY CASE WHAT I THINK
If one process uses fork and then anoter process is created then we can use pipes to communicate between them. But Here also we can achieve the same thing by using functions. One to read one string and the other is to write the string.
So my overall doubt is when we need to pipe to implement in our program and in what scenario.
|
Linux protects processes from each other. This concept has been in all non-Microsoft operating systems for 40 years. Processes cannot access other processes' memory both to prevent processes from crashing each other and to provide privacy, i.e. processes cannot snoop on each others data.
Obviously processes often need to communicate with other processes. Pipes are one way that processes can communicate with each other in a secure, well defined manner.
--------------------------
Steve Stites