© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
H. DuttInterprocess Communication with macOShttps://doi.org/10.1007/978-1-4842-7045-5_2

2. IPC Through Shared Memory

Hem Dutt1  
(1)
North Delhi, Delhi, India
 

As discussed briefly in Chapter 1, shared memory is an implementation for IPC where a memory section is shared between different processes. In other words, process A writes to the shared memory segment, and process B can read from this memory segment, or vice versa. In this chapter, we will go through concepts of shared memory and its implementation for IPC in detail.

Introduction to Shared Memory

In an IPC scenario, each participating process has its own address space. Just in case any process wants to ...

Get Interprocess Communication with macOS: Apple IPC Methods 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.