Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device, terminal and storage medium for processing state events

A technology for processing status and status events, applied in multi-program devices, electrical components, inter-program communication, etc., can solve problems such as ANR in the application client, and achieve the effects of avoiding ANR, improving operating efficiency, and avoiding stuttering

Active Publication Date: 2022-02-25
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present disclosure provides a method, device, terminal and storage medium for processing state events, which can solve the problem of ANR in the application client

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
  • Method, device, terminal and storage medium for processing state events
  • Method, device, terminal and storage medium for processing state events
  • Method, device, terminal and storage medium for processing state events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0072] figure 1 It is an implementation environment for processing status events shown according to an exemplary embodiment. The implementation environment includes an application client 101 and an operating system 102, and the application client 101 and the operating system 102 are installed on the same terminal. The operating system 102 includes a broadcast component (BroadcastRecei...

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 present disclosure relates to a method, device, terminal, and storage medium for processing status events, belonging to the field of computer applications. The method includes: receiving a broadcast message from an operating system; determining at least one first subtask and at least one subtask of a task corresponding to the status event; A second subtask; at least one first subtask is assigned to the main thread of the application client for execution, and at least one second subtask is assigned to the subthread of the application client for execution. The disclosure can split the task corresponding to the status event into multiple subtasks, assign the first subtask whose estimated completion time is less than the preset time-consuming to the main thread for execution, and assign the first subtask whose estimated completion time is not less than the preset time-consuming The second sub-task is assigned to the sub-thread for execution. By opening the asynchronous thread pool, it is avoided that the sub-task that is expected to take a long time to complete affects other tasks that the main thread is executing, thereby avoiding ANR and stuttering on the application client, and improving The operating efficiency of the application client.

Description

technical field [0001] The present disclosure relates to the field of computer applications, and in particular to a method, device, terminal and storage medium for processing broadcast events. Background technique [0002] Inside the terminal, the operating system generally monitors the state of the application client; and, when the operating system monitors that the state of the application client changes, it sends a broadcast message to the application client through the broadcast component of the four major components of the system, and the application The client processes the status event of the status change according to the broadcast message. For example, when the application client downloads a certain video, the download task of the video is added to the download list. The operating system monitors the status of the download task. When the operating system monitors that the download task is completed, it determines that the status of the application client has change...

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 Patents(China)
IPC IPC(8): H04L65/1073H04L65/611G06F9/54
Inventor 邓生金
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD