State event processing method and device, terminal and storage medium
The invention relates to a state event processing method and device, a terminal and a storage medium, and belongs to the field of computer application, and the method comprises the steps: receiving abroadcast message of an operation system; Determining at least one first subtask and at least one sec...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
07.06.2019
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to a state event processing method and device, a terminal and a storage medium, and belongs to the field of computer application, and the method comprises the steps: receiving abroadcast message of an operation system; Determining at least one first subtask and at least one second subtask of the task corresponding to the state event; And allocating the at least one first sub-task to a main thread of the application client for execution, and allocating the at least one second sub-task to a sub-thread of the application client for execution. According to the invention, thetask corresponding to the state event can be split into a plurality of sub-tasks; the first sub-task of which the predicted time consumption is less than the preset time consumption is allocated to amain thread for execution, the second sub-task of which the predicted time consumption is not less than the preset time consumption is allocated to the sub-thread for execution, By opening the asynchronous thread pool, it is a |
---|---|
Bibliography: | Application Number: CN201811490085 |