Shared stack processing method and device, electronic equipment and storage medium
The invention provides a shared stack processing method and device, electronic equipment and a storage medium. The method comprises the steps that the task execution state of a shared stack is determined; when the shared stack is in the first state, determining the priority of a current execution ta...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a shared stack processing method and device, electronic equipment and a storage medium. The method comprises the steps that the task execution state of a shared stack is determined; when the shared stack is in the first state, determining the priority of a current execution task of the shared stack; if the priority of the new task received by the shared stack is higher than that of the currently executed task, the currently executed task is paused, the to-be-executed task at the opposite end of the shared stack is backed up to a heap memory, the new task enters the stack from the opposite end, and the shared stack executes the new task; when the shared stack is in the second state, determining the priority of the currently executed task of the shared stack; if the priority of the new task received by the shared stack is higher than that of the currently executed task, the currently executed task is paused, the new task enters the stack from the opposite end, and the shared stack execute |
---|