Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Pending Publication Date: 2020-11-10
FOSHAN SHUNDE MIDEA WASHING APPLIANCES MFG CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In related technical solutions, for chips that do not support the operating system, task management services cannot be provided, resulting in a waste of chip computing power

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task scheduling method and device, household appliance and computer readable storage medium
  • Task scheduling method and device, household appliance and computer readable storage medium
  • Task scheduling method and device, household appliance and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a task scheduling method and device, a household appliance and a computer readable storage medium. The task scheduling method comprises the steps of determining an execution right of a target task preempting a processor; and controlling the processor to read the data stored in the information storage space of the target task so as to execute the target task. The target taskhas the information storage space and belongs to the static array structure, so that task scheduling can be achieved on the basis that the processor does not support the dynamic memory allocation function, and particularly, when the target task preempts the execution right of the processor, namely, the target task can enter the execution state, the processor is controlled to read the data stored in the information storage space of the target task, the data of the information storage space of the target task is recovered to the processor to execute the target task, and the chip computing poweris fully utilized based on the control process.

Description

technical field [0001] The present invention relates to the technical field of task scheduling, and in particular, to a task scheduling method, device, household appliance, and computer-readable storage medium. Background technique [0002] In related technical solutions, for chips that do not support the operating system, task management services cannot be provided, resulting in a waste of chip computing power. Contents of the invention [0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art. [0004] Therefore, the first aspect of the present invention is to provide a task scheduling method. [0005] The second aspect of the present invention is to provide a task scheduling device. [0006] The third aspect of the present invention is to provide a household appliance. [0007] A fourth aspect of the present invention is to provide a computer-readable storage medium. [0008] In view of this, accordi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48
CPCG06F9/4812G06F9/4881
Inventor 张琪
Owner FOSHAN SHUNDE MIDEA WASHING APPLIANCES MFG CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products