Task scheduling method and device, household appliance and computer readable storage medium
A technology for task scheduling and household appliances, applied in computing, multi-programming devices, instruments, etc., can solve the problems of wasting chip computing power and unable to provide task management services.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 As shown, according to the first aspect of the present invention, the present invention provides a task scheduling method, comprising:
[0045] Step S102, determining that the target task has the execution right to preempt the processor;
[0046] Step S104, the control processor reads the data stored in the information storage space of the target task, so as to execute the target task.
[0047] In this embodiment, the target task has an information storage space which belongs to a static array structure. Therefore, task scheduling can be realized on the basis that the processor (such as a single-chip microcomputer) does not support the dynamic memory allocation function.
[0048]Specifically, when the processing receives the target task, it is judged whether the target task has the execution right to preempt the processor, and when it is judged that the target task has the execution right to preempt the processor, the control processor reads the data i...
Embodiment 2
[0058] Such as image 3 As shown, another embodiment of the present invention provides a task scheduling method, including:
[0059] Step S302, determining that the target task has the execution right to preempt the processor;
[0060] Step S304, storing the current state information of the processor in the information storage space of the current task, and switching the state of the current task to a suspended state;
[0061] Step S306, controlling the processor to read the data stored in the information storage space of the target task to execute the target task;
[0062] Step S308, determining that the execution of the target task is completed, and searching for tasks in a pending state;
[0063] Step S310, determining that the task in the suspended state is the current task, and assigning the execution right of the processor to the current task;
[0064] Step S312, the control processor reads the data in the information storage space of the current task, so as to contin...
Embodiment 3
[0074] Such as Figure 4 As shown, a complete embodiment of the present invention provides a task scheduling method, including:
[0075] Step S402, acquiring the priority of the target task;
[0076] Step S404, based on the fact that the priority of the target task is higher than the priority of the current task and it is determined that the target task is in a ready state, it is determined that the target task preempts the execution right of the processor;
[0077] Step S406, storing the current state information of the processor in the information storage space of the current task, and switching the state of the current task to a suspended state;
[0078] Step S408, controlling the processor to read the data stored in the information storage space of the target task to execute the target task;
[0079] Step S410, determine that the execution of the target task is completed, and search for tasks in the pending state;
[0080] Step S412, determining that the task in the sus...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com