Message Queueing

Concurrency Pattern

Douglass'2002

Intent

  • Provide a simple mechanism for information exchange between threads.

  • Avoid race conditions.

Context

  • Asynchronous communication.

  • A multithread system, where threads must:

  • synchronize to exchange informations.

  • avoid race condition situations during information exchange.

Structure

message queueing structure

Consequences

  • Information shared among threads is passed by value to the separate thread.

  • Simple mechanism used by most real-time systems.

  • Relatively heavy.

Back to main presentation