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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.