thread priority and queue

I can’t seem to find this in the documentation or FAQ. What is the criteria for choosing the thread to release from send/receive on a queue?Highest priority or longest waiting (or other, I suppose).

thread priority and queue

It is always the highest priority task that is unblocked.  Where there are two or more tasks of equal priority then the one that has been waiting the longest is unblocked. Regards.