Jump to ratings and reviews
Rate this book

Beej's Guide to Unix Interprocess Communication

Rate this book
You know what's easy? fork() is easy. You can fork off new processes all day and have them deal with individual chunks of a problem in parallel. Of course, its easiest if the processes don't have to communicate with one another while they're running and can just sit there doing their own thing.

However, when you start fork()'ing processes, you immediately start to think of the neat multi-user things you could do if the processes could talk to each other easily. So you try making a global array and then fork()'ing to see if it is shared. (That is, see if both the child and parent process use the same array.) Soon, of course, you find that the child process has its own copy of the array and the parent is oblivious to whatever changes the child makes to it.

How do you get these guys to talk to one another, share data structures, and be generally amicable? This document discusses several methods of Interprocess Communication (IPC) that can accomplish this, some of which are better suited to certain tasks than others.

http://beej.us/guide/bgipc/

54 pages, ebook

Published December 1, 2015

5 people want to read

About the author

Brian Hall

123 books23 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
2 (40%)
4 stars
2 (40%)
3 stars
1 (20%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Joseph Jojoe.
10 reviews
January 10, 2024
A great complement to Beej's Guide to Network Programming. I'm not sure if there's a recommended reading order but I would probably read this text first. Some dialogue about threading would have been appreciated though not strictly relevant to the subject matter. Excellent humorous commentary throughout. I recommend this to anyone who is unfamiliar with Unix and relevant network concepts - the chapter on semaphores was particularly interesting!
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.