The two models of interprocess communication are message-passing model and the shared-memory model.
Message passing is useful for exchanging smaller amounts of data, because no conflicts need be avoided. It is
also easier to implement than is shared memory for intercomputer communication. Shared memory allows
maximum speed and convenience of communication, since it can be done at memory transfer speeds when it
takes place within a computer. However, this method compromises on protection and synchronization
between the processes sharing memory.