Free Processes and threads lessonsProcesses and threads · Stage 2 · Processes talking to each other · Step 1
Shared memory or message passing
Compare the two basic ways for separate processes to exchange data, and what each demands from the programmer. About 12 minutes.
What is the main advantage of shared memory over message passing between two processes on one machine?
- AAfter setup, data moves at memory speed with no system call per transfer
- BIt needs no synchronisation between the processes
- CIt works across a network
Show the answer
After setup, data moves at memory speed with no system call per transfer. The kernel is out of the data path.
4 questions on this idea
Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.
Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve