IPC via named pipe: Difference between revisions
Content added Content deleted
m (the task) |
|||
Line 1: | Line 1: | ||
{{draft task}} |
{{draft task}} |
||
[[wp:Named pipe|Named pipe]], or FIFO, is a way of providing inter-process communications (IPC). |
[[wp:Named pipe|Named pipe]], or FIFO, is a way of providing inter-process communications (IPC). The task is to demonstrate how it works, create two pipes, say, "in" and "out" (choose suitable names for your system), and write a program that works the two pipes such that: |
||
# Data written to the "in" FIFO will be discarded except the byte count, which will be added to a total tally kept by the program; |
# Data written to the "in" FIFO will be discarded except the byte count, which will be added to a total tally kept by the program; |
||
# Whenever another process reads the "out" FIFO, it should receive the total count so far. |
# Whenever another process reads the "out" FIFO, it should receive the total count so far. |