Capgemini Engineering interview question

Explain the difference between shared memory and message passing ipc?