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

Task processing method and device, equipment and storage medium

A task processing and task technology, applied in the computer field, can solve problems such as unresponsive tasks, uncontrolled number, and terminal application freezes, etc., so as to avoid long-term non-execution, reduce unresponsiveness, and relieve stress.

Pending Publication Date: 2022-04-29
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For task scheduling in the system, take the Android system as an example. In the task scheduling process and message delivery mechanism of the Android system, if you need to process a certain task, you can get the message pump looper of the corresponding thread, encapsulate the task into a message and Putting it into this thread for execution, if the task cannot be processed in time or the computing power of the device is limited, the number of tasks that need to be processed in the thread will accumulate more and more, and the number will not be controlled, especially in the main thread, if the backlog of tasks increases Too many, it is easy to cause the task to fail to respond in time, so it is judged by the application non-response ANR detection mechanism that the application is not responding, causing the terminal or application to freeze or go down.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0090] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those ski...

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 processing method and device, equipment and a storage medium, at least one to-be-processed task to be processed by a target thread is determined, and the to-be-processed task is a non-real-time processing task; under the condition that the target thread is in the idle state, the idle duration of the target thread is predicted; when the idle duration is greater than or equal to a preset specified duration, determining a target task from the at least one to-be-processed task according to the task processing duration of each to-be-processed task and the preset specified duration; and loading the target task into the target thread for processing. Therefore, the idle duration of the target thread is utilized to process the non-instantaneously processed task to control the time and the execution opportunity for the task to be put into the thread, so that the task cache amount of the target thread can be reduced, the pressure of the target thread can be relieved, and the probability that the application has no response and is stuck is reduced.

Description

technical field [0001] The present disclosure relates to the technical field of computers, and in particular, to a task processing method, device, equipment, and storage medium. Background technique [0002] With the continuous development of science and technology, smart terminals have gradually entered people's lives, and they play an increasingly important role in people's lives. Among smart terminals, the smart terminal system plays an important role, mainly for management The computer program of the hardware and software resources of the terminal, the operating system needs to handle basic affairs such as managing and configuring memory, determining the priority of supply and demand of system resources, controlling input devices and output devices, operating the network and managing the file system. [0003] For task scheduling in the system, take the Android system as an example. In the task scheduling process and message delivery mechanism of the Android system, if yo...

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/4881
Inventor 杨智婷
Owner BEIJING BYTEDANCE NETWORK TECH 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