Multitask switching method and device, embedded system and medium

The invention discloses a multi-task switching method and device, an embedded system and a medium, and relates to the technical field of embedded operating systems, the method is used for solving the problem that the time cost of context switching is large, the method is applied to a processor, and...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CHENG WEN, ZHANG ENQIN, HONG YINQIU
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 multi-task switching method and device, an embedded system and a medium, and relates to the technical field of embedded operating systems, the method is used for solving the problem that the time cost of context switching is large, the method is applied to a processor, and the processor is configured with N groups of first general registers, each group of first general registers is used for being distributed to a task, N is an integer larger than 1, and the method comprises the steps that when a task switching request is received, a target task of the task switching request is determined; and switching a general register of a processor to a first general register allocated to the target task, obtaining the context of the target task stored in the first general register allocated to the target task, and executing the target task. By adopting the method, the software data migration execution time during task switching can be shortened, the optimization of the context switching time is