Message queues are pretty common structures for inter-process communication. A common queue is created by one of the processes, from there it can be connected to by any other process and have messages submitted to it.
This snippet shows the creation of a queue and sending a message. Another block below this will show receiving a message from the queue.