Guardian Programmer's Guide

Table Of Contents
Communicating With Processes
Guardian Programmer’s Guide 421922-014
6 - 8
Queuing Messages on $RECEIVE
Queuing Messages on $RECEIVE
Messages destined for a given server process are placed by the file-system software in
a queue in the $RECEIVE file for the process in question. Note that this queue exists
in main memory, not on disk.
Normally, the queue is organized so that the server process reads messages from
$RECEIVE in the order in which they arrive. This is usually true whether messages
came from application requester processes, the server’s parent process, or the
operating system.
Figure 6-2 shows a typical queue. In this example, the server process has received
messages from its parent process (the Startup message) and messages from each of
three requester processes.
As an alternative to reading messages from $RECEIVE in the order in which they
arrive, you can have the queue reordered according to the priority of the messages.
Usually, the priority of a message is the same as the priority of the process that sent
the message.
Note. Some system status messages (such as message -2, the CPU Down message) do get
delivered ahead of messages from processes, including processes that are part of the
operating system.
Figure 6-2. Multiple Requester Processes and Message Queuing
VST034.VSD