Task execution method and device, storage medium and electronic device

The embodiment of the invention provides a task execution method and device, a storage medium and an electronic device.The method comprises the steps that a first thread reads and removes a first resource identifier located at the head of a queue in a resource identifier queue, and obtains a resourc...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YU XING, QIU SONGLIN
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 embodiment of the invention provides a task execution method and device, a storage medium and an electronic device.The method comprises the steps that a first thread reads and removes a first resource identifier located at the head of a queue in a resource identifier queue, and obtains a resource access state corresponding to the first resource identifier; when the resource access state corresponding to the first resource identifier indicates that the first resource is being accessed, inserting the first resource identifier into the queue tail of the resource identifier queue; the first thread reads and removes a second resource identifier located at the head of the queue from the resource identifier queue, and obtains a resource access state corresponding to the second resource identifier; when the resource access state corresponding to the second resource identifier shows that the second resource is not accessed, the first thread accesses the second resource and executes the corresponding to-be-executed