Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Can single pipe be connected and read by multiple processes

$
0
0

From my understanding, C pipes are like a special kind of file, where internally, the kernal keep tracks of the openings and closings from each process in a table. see the post here

So in that sense:

  1. Is it possible for 1 single pipe to be connected by multiple processes?
  2. If it is possible, can multiple processes read the same data?
  3. If 2 is possible, will they be reading the same data, or does reading the data "empty" the data?

For example: process 1 writes into pipe, can process 2,3,4 read the data that process 1 wrote?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>