Interprocess Communication (IPC)

Interprocess Communication plays a fundamental role in the transformation of the QNX Neutrino microkernel from an embedded realtime kernel into a full-scale POSIX operating system. As various service-providing processes are added to the microkernel, IPC is the "glue" that connects those components into a cohesive whole.

Although message passing is the primary form of IPC in the BlackBerry 10 OS, several other forms are available as well. Unless otherwise noted, those other forms of IPC are built over our native message passing. The strategy is to create a simple, robust IPC service that can be tuned for performance through a simplified code path in the microkernel; more "feature cluttered" IPC services can then be implemented from these.

Benchmarks comparing higher-level IPC services (like pipes and FIFOs implemented over our messaging) with their monolithic kernel counterparts show comparable performance.

BlackBerry 10 OS offers at least the following forms of IPC:

Service: Implemented in:
Message-passing Kernel
Signals Kernel
Shared memory Process manager
Pipes External process
FIFOs External process

The designer can select these services on the basis of bandwidth requirements, the need for queuing, network transparency, etc. The trade-off can be complex, but the flexibility is useful.

As part of the engineering effort that went into defining the QNX Neutrino microkernel, the focus on message passing as the fundamental IPC primitive was deliberate. As a form of IPC, message passing (as implemented in MsgSend() , MsgReceive() , and MsgReply() ), is synchronous and copies data. Let's explore these two attributes in more detail.

Last modified: 2013-12-21

comments powered by Disqus