Lockless message queue communication method and system

The invention discloses a lockless message queue communication method and system. The lockless message queue communication method comprises the steps that a lockless message queue is created in a shared memory, wherein the lockless message queue includes at least one message, and the messages are ar...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: HE WANGANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a lockless message queue communication method and system. The lockless message queue communication method comprises the steps that a lockless message queue is created in a shared memory, wherein the lockless message queue includes at least one message, and the messages are arranged according to the first-in first-out rule; delivery messages sent by at least one writing process are received, messages corresponding to the delivery messages of all the writing processes are sequentially written into the queue tail of the lockless message queue according to the receiving sequence of the delivery messages; reading messages sent by at least one reading process are received, and messages are sequentially sent to all the reading processes one by one from the queue head of the lockless message queue according to the receiving sequence of the reading messages. According to the lockless message queue communication method and system, all the messages are stored in the shared memory according to the