Named Pipes

Another form of interprocess communication (IPC) is the named pipe. A pipe is a way of communicating between processes. You can think of a pipe much like the tin can and string telephones that children play with. One child speaks into a tin can. The sound travels across the string to the other end where her friend is listening. Pipes are very similar in that one process writes into one end of the pipe and the other process reads from the other end.

This is a handy way for two processes or even different threads in the same process to pass data to each other. You see this type of communication every time you download a Web page using your browser. The server process on some remote machine writes Web page data to one end of a TCP/IP ...

Get Win32 Perl Programming: The Standard Extensions, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.