Supercharge Your Innovation With Domain-Expert AI Agents!

Task processing method and device, terminal and storage medium

A task processing and task technology, applied in multi-programming devices, electronic digital data processing, resource allocation, etc., can solve problems such as untimely processing of tasks, increased terminal load, thread blockage, etc.

Pending Publication Date: 2021-02-12
CHINA PING AN LIFE INSURANCE CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Currently, when a terminal receives a task, it allocates a working thread for the task, that is, for N tasks, it needs to allocate N threads to process it. Since the number of threads in the terminal is limited, when there are many tasks, then If the terminal cannot allocate enough threads to process tasks, some tasks will not be processed in time. When the terminal runs multiple threads for a long time, it will increase the load on the terminal, and when an abnormal task occurs, it will easily lead to thread blockage. Inefficient processing of tasks

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 processing method and device, terminal and storage medium
  • Task processing method and device, terminal and storage medium
  • Task processing method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0027] The task processing method provided by the embodiment of the present invention is implemented in a terminal, and the terminal includes electronic devices such as smart phones, tablet computers, digital audio and video players, e-readers, handheld game consoles, or vehicle-mounted electronic devices.

[0028] figure 1 is a schematic flowchart of a task processing method in an embodiment of the present invention, such as figure 1 As shown, t...

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 embodiment of the invention discloses a task processing method and device, a terminal and a storage medium, and the method comprises the steps: receiving at least one task, generating a schedulinginstance according to the at least one task, distributing a corresponding work thread for each task in the at least one task based on the scheduling instance, monitoring the processing progress of each worker thread for the task based on the scheduling instance to obtain the processing progress for each task; if it is determined that there is an abnormal task in the at least one task based on theprocessing progress of each task, determining a load value of each working thread based on the scheduling instance, and determining a target processing strategy for the abnormal task according to theload value of each working thread; and processing the abnormal task according to the target processing strategy to obtain a processing result for the abnormal task. Tasks are distributed and monitored through the generated scheduling instances, strategies are formulated in time to process abnormal tasks, and task processing efficiency and fault tolerance are improved.

Description

technical field [0001] The present invention relates to the technical field of load allocation, in particular to a task processing method, device, terminal and storage medium. Background technique [0002] The worker thread is the smallest unit that the operating system can perform operation scheduling. A worker thread refers to a single sequential control flow. A terminal (mobile phone, computer, host, etc.) can include multiple worker threads. When the terminal receives a task, it can assign the task to the worker thread, so that the worker thread can The task is processed and the task processing result is obtained. [0003] Currently, when a terminal receives a task, it allocates a working thread for the task, that is, for N tasks, it needs to allocate N threads to process it. Since the number of threads in the terminal is limited, when there are many tasks, then If the terminal cannot allocate enough threads to process tasks, some tasks will not be processed in time. W...

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/50
CPCG06F9/5038G06F9/505G06F9/5088
Inventor 侯腾飞何冠宏
Owner CHINA PING AN LIFE INSURANCE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More