Browse Prior Art Database

Dual Queue Receive

IP.com Disclosure Number: IPCOM000102776D
Original Publication Date: 1990-Jan-01
Included in the Prior Art Database: 2005-Mar-17
Document File: 1 page(s) / 27K

Publishing Venue

IBM

Related People

Berg, WF: AUTHOR [+2]

Abstract

A technique is described which permits a task to wait on two separate queues possibly having different characteristics. For example, a non-resident task services a resident and a non-resident queue in a manner consistent with common message processing techniques.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Dual Queue Receive

      A technique is described which permits a task to wait on two
separate queues possibly having different characteristics. For
example, a non-resident task services a resident and a non-resident
queue in a manner consistent with common message processing
techniques.

      A "dual queue receive" operation is constructed from a single
queue receive and a send/receive count (signal/semaphore) operation.
The count is used to gate access to the queues by a message
processing task.

      In order to perform a dual queue receive, the following
psuedocode is inserted in place of a receive message from a single
queue:
           Receive Count (semaphore wait)
           Dequeue Message
           IF no message dequeued THEN
             Receive Message from other queue

      A message sender is required to do a "send message" to the
desired queue followed by a "send count" to the count that the
message processor task is waiting on.

      Disclosed anonymously.