0
$\begingroup$

Most OSes use the message passing system to let 2 processes communicated with each other.This works by a shared mailbox between the OS and each process loaded in the RAM however are there processes which have their own shared mailbox and can communicate without the OS acting as a middleman?

$\endgroup$

1 Answer 1

2
$\begingroup$

Two isolated processes need some OS support for passing messages between each other, but there need not be a system call for every message.

One simple way is to use virtual memory. You could, for example, use shared memory or a memory-mapped file to share a piece of memory between two processes, and communication can then proceed using shared data structures for communication.

Many operating systems also provide cross-process synchronisation objects if waiting is needed.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.