Hacker News new | ask | show | jobs
by jesprenj 440 days ago
Why use a pipe to communicate instead of shared memory?
1 comments

It's much easier to reason about a child process sending you possibly corrupt objects over a pipe, compared to a child process possibly corrupting shared memory as you are reading it. I've read enough about processor level memory barriers to understand I don't really understand that at all.