Thread scheduling method and thread scheduling apparatus

A scheduling method and scheduling device technology, applied in the IT field, can solve problems such as time-consuming, UI thread blocking, and cumbersome data processing procedures, and achieve the effects of improving processing efficiency, avoiding blocking, and improving display effects

Inactive Publication Date: 2016-09-07
GUANGZHOU HUADUO NETWORK TECH
View PDF9 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the number of requests to be processed by the UI thread is large, its data processing process will be cumbersome and time-consuming, which will easily cause the UI thread to be blocked, affect the display effect of the UI interface, and cause the system of the electronic device to freeze. Affect the stable operation of the system

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
  • Thread scheduling method and thread scheduling apparatus
  • Thread scheduling method and thread scheduling apparatus
  • Thread scheduling method and thread scheduling apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following will clearly and completely describe the technical solutions of each exemplary embodiment provided by the present invention with reference to the accompanying drawings in the embodiments of the present invention.

[0023] figure 1 is a schematic flowchart of an embodiment of the thread scheduling method of the present invention. see figure 1 As shown, the thread scheduling method of this embodiment includes the following steps:

[0024] S11: pre-constructing a cache pool, the cache pool stores a mapping relationship between a scheduled thread and tasks that can be processed by the scheduled thread;

[0025] A program including an APP (Application, application program) usually includes at least two threads, one is a UI thread or main thread, and the other is a background thread. Among them, the background thread is responsible for the data interaction when the entire program runs on the electronic device system. When the background thread is closed, the ...

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 thread scheduling method and a thread scheduling apparatus. A task request submitted by a user is determined through a mapping relation between a UI thread stored in a buffer pool and a task that can be processed by the UI thread, the task request is decided to be assigned to the UI thread or a background thread, the business logic of the determination and scheduling of the task request is executed by the background thread without the need of the UI thread, therefore, the processing efficiency of the UI thread is improved, the occurrence of congestion to the UI thread and a system glitch are avoided, a display effect of a UI is improved, and the stable operation of the system is facilitated.

Description

technical field [0001] The present invention relates to the field of IT (Internet Technology, Internet technology), in particular to a thread scheduling method and a thread scheduling device based on the method. Background technique [0002] With the development of technology, the amount of information that electronic devices with interface browsing functions such as smart phones interact with the Internet is increasing. At present, the data processing process of the electronic device is mainly executed in the UI (User Interface, user interface) thread. The UI thread processes the requests in the message queue in a first-in-first-out manner, thereby realizing web page display. However, if the number of requests to be processed by the UI thread is large, its data processing process will be cumbersome and time-consuming, which will easily cause the UI thread to be blocked, affect the display effect of the UI interface, and cause the system of the electronic device to freeze. ...

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/48G06F9/44
CPCG06F9/451G06F9/4881G06F2209/484
Inventor 张戈
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products