message passing

Work in Progress

Concept

  • process sends a message directly to another process
  • fascilitated by syscalls, message may be stored in kernal memory
  • naming - need to identify the other party
  • pros:
    • portable - can be implemented on different processing environments, ie. distributed systems
    • synchronization - depending on which primitive is used
  • cons:
    • inefficient - require more OS intervention
    • harder to use - limited in size and format

Communication schemes

Direct communicationIndirect communication
- explicitly name the other party
- 1-to-1 communication
- send and receive from a mailbox/port
- mailbox can be shared among many processes

Primitives

Blocking primitiveNon-blocking primitive
synchronousasynchronous
sender is blocked until message is receivedsender can resume immediately
receiver is blocked until a message arrivesreceiver either receives the message or a “not ready”