Message queue processing among cooperative processors having significant speed differences
First Claim
Patent Images
1. A method for passing task oriented messages between a plurality of high speed processors and an external storage sub-system communicatively coupled over a shared memory, comprising the steps of:
- (a) defining first and second dense linked linear lists in the shared memory, each list having independently lockable first and second ends thereof;
(b) obtaining a first lock by a processor on the first end of the first list when available, inserting messages between the first end and any last message so linked, and releasing said first lock;
(c) obtaining another lock by the sub-system on the second end of the first list when available, removing messages anywhere on the list, and releasing said other lock; and
(d) repeating steps (b) and (c) on the first and second ends of the second list by the storage sub-system and a processor respectively, concurrent access to non-overlapping sets of messages by the storage sub-system and a processor to the same list occurring either to the first and second ends of the second list or the second and first ends of the first list respectively.
0 Assignments
0 Petitions
Accused Products
Abstract
Processors communicatively attaching a storage sub-system and which place a message on a queue no longer have to wait on a queue lock set by another processor or sub-system dequeuing a message. This is realized by use of a double ended linked list or queue of messages having an isolation/reference point wherein an enqueuing end of the list is lockable and accessible independently from the dequeuing end of the list. The locking primitive may be of the multi-processor lock synchronizing atomic type such as TEST AND SET.
90 Citations
8 Claims
-
1. A method for passing task oriented messages between a plurality of high speed processors and an external storage sub-system communicatively coupled over a shared memory, comprising the steps of:
-
(a) defining first and second dense linked linear lists in the shared memory, each list having independently lockable first and second ends thereof; (b) obtaining a first lock by a processor on the first end of the first list when available, inserting messages between the first end and any last message so linked, and releasing said first lock; (c) obtaining another lock by the sub-system on the second end of the first list when available, removing messages anywhere on the list, and releasing said other lock; and (d) repeating steps (b) and (c) on the first and second ends of the second list by the storage sub-system and a processor respectively, concurrent access to non-overlapping sets of messages by the storage sub-system and a processor to the same list occurring either to the first and second ends of the second list or the second and first ends of the first list respectively. - View Dependent Claims (4, 5, 6)
-
-
2. A method for passing task oriented messages in a system having a plurality of high speed processors, an external storage subsystem, shared internal memory, and means utilizing the shared internal memory for enqueuing messages by the processors and for dequeuing messages by the storage subsystem in a first direction, and, for enqueuing messages by the storage subsystem and for dequeuing messages by the processors in a second direction, each processor accessing a lock primitive (Test and Set), accessing a lock including comparison matching a resultant from executing a lock primitive with a lockword, comprising the steps of:
-
(a) defining first and second linked linear lists in the shared internal memory, reference points and operator sets over the lists, each operator set including a top of list (TOQ) and bottom of list (BOQ) pointers, top of list (TOQL) and bottom of list (BOQL) lockwords, each list having a top of the list end and a bottom of the list end; (b) obtaining a first lock by one of the processors on the BOQ end of the first list upon comparison matching the BOQL with the resultant of executing the lock primitive by said one processor, embedding messages between a reference point and any last message including a null message so connected in the list, and releasing said first lock; (c) obtaining another lock by the sub-system on the TOQ end of the first list only upon comparison matching the TOQL with the resultant of executing the lock primitive by the subsystem, removing one or more messages from said list, and releasing said other lock; (d) repeating steps (b) and (c) on the BOQ and TOQ ends of the second list by the storage sub-system and a processor respectively, concurrent access to non-overlapping sets of messages by the storage sub-system and a processor to the same list occurring either to the BOQ and TOQ ends of the second list or the TOQ and BOQ of the first list respectively; and (e) reordering the list of messages by obtaining another lock by the sub-system on the TOQ of the first list when available, removing messages anywhere on the list, linking at least some of the dequeued messages together in one or more fragmentary chains, and then reinserting the fragmentary chains back into the queue, and releasing said other lock. - View Dependent Claims (3)
-
-
7. A system having a plurality of fast processors communicatively coupling an external storage sub-system by way of a shared memory, said system comprising:
-
means responsive to messages originating from selected processors for writing the messages into the shared memory, linking said messages into a wait queue, and signaling the storage sub-system; means at the storage sub-system aperiodically responsive to said signaling for dequeing the messages from the wait queue, actively processing the dequeued messages, enqueuing the processed messages onto a completion queue in said shared memory, and signaling the system; and means aperiodically responsive to the sub-system signals for dequeing the processed messages form the completion queue; wherein said system further comprises; means for defining a pair of linked lists in the shared memory with separately lockable ends; and means for operating said lists as oppositely poled queues (processor to subsystem direction, and subsystem to processor direction) supporting message passing between high and low speed processors by enqueing messages on each list by a processor or the sub-system lockably independent from (i) the dequeuing of messages by the sub-system if the processor enqueues the messages, or, (ii) the dequeuing of messages by the processor if the sub-system enqueues the messages on the sample list, said means for operating said lists include means for managing concurrent access to non-overlapping sets of messages by the storage sub-system and a processor to the same list occurring either to the first and second ends of the second list or the second and first ends of the first list respectively; and means for reordering the list of messages by obtaining another lock by the sub-system on the second end of the queue poled in the processor to subsystem direction when available, removing messages anywhere on the list, linking at least some of the dequeued messages together in one or more fragmentary chains, and then reinserting the fragmentary chains back into the queue, and releasing said other lock. - View Dependent Claims (8)
-
Specification