Method and device of controlling storage information in orderly manner by threads without locking and server

The invention relates to the technical field of data storage, and provides a method and a device of controlling storage information in an orderly manner by threads without locking and a server. The method includes: invoking , according to releasing status of a shared storage node in a cyclic queue,...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG SHAOMIN, LIU XIWEI, ZHANG FANWEN
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 relates to the technical field of data storage, and provides a method and a device of controlling storage information in an orderly manner by threads without locking and a server. The method includes: invoking , according to releasing status of a shared storage node in a cyclic queue, a CAS instruction during reading current data from the shared storage node by a focus thread in theat least two first threads; changing the releasing status to non-releasing status when current-data reading ends, wherein the non-releasing status is used for indicating that a first thread can storepost-data after the current data; allocating the shared storage node in the non-release status for the first thread; and updating an original cursor by a new cursor according to consistency of a storage location of the shared storage node in the cyclic queue and the original cursor in the CAS instruction, wherein the new cursor is equal to the sum of the original cursor and a single vector. Therefore, the threads can be co