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

Optimization method of network resource uploading based on buffer and asynchronous mechanism

A network resource and optimization method technology, applied in data exchange network, telephone communication, digital transmission system, etc., can solve the phenomenon of stuck or even UI deadlock, network transmission delay, UI thread stuck or even UI deadlock, etc. problem, to achieve the effect of preventing stuck

Inactive Publication Date: 2016-01-13
INSPUR QILU SOFTWARE IND
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention aims at the multi-thread processing in the Android system of the mobile device in the prior art, sometimes the UI thread freezes or even the UI freezes when loading network resources, and the phenomenon of network transmission delay occurs from time to time, and provides a method based on caching and The optimization method of loading network resources by asynchronous mechanism is aimed at preventing the UI thread from getting stuck or even UI deadlock, and the phenomenon of network transmission delay from time to time when Android mobile devices use multi-threaded loading of network resources

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
  • Optimization method of network resource uploading based on buffer and asynchronous mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] An optimization method for loading network resources based on caching and asynchronous mechanisms, constructing asynchronous and synchronous thread pools in the Android system of mobile devices, using the asynchronous thread pool to arrange tasks, using the synchronous thread pool to execute tasks, and storing the generated data in memory , and save the generated file to the SD card.

[0015] Use the asynchronous thread pool to queue tasks, add tasks to the queue during processing, and then automatically start these tasks after creating threads. Each thread uses the default stack size and runs at the default priority.

[0016] Use the THREAD_POOL_EXECUTOR asynchronous thread method of AsyncTask in the Android system to perform asynchronous thread pool arrangement tasks.

[0017] Using the SERIAL_EXECUTOR synchronization thread method of AsyncTask in the Android system to execute tasks in the synchronization thread pool, SERIAL_EXECUTOR adds a collection of mTasks on 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 discloses an optimization method of network resource uploading based on a buffer and asynchronous mechanism, and belongs to the field of resource optimization. The optimization method comprises the steps of establishing asynchronous and synchronous thread pools in an Android system of a mobile device, arranging tasks by utilizing the asynchronous thread pool; executing the tasks by utilizing the synchronous thread pool; and memory-caching generated data; storing generated files in an SD card. The optimization method of network resource uploading based on the buffer and asynchronous mechanism prevents a UI (User Interface) thread against blockage even UI zombie and prevents a network transmission delay phenomenon which is occasionally happened.

Description

technical field [0001] The invention discloses an optimization method for loading network resources, which belongs to the field of resource optimization, in particular to an optimization method for loading network resources based on cache and asynchronous mechanism. Background technique [0002] With the development of technology, mobile devices have become an indispensable tool in people's daily life, the configuration of mobile devices is getting higher and higher, and users' requirements for the experience of mobile devices are also getting higher and higher. However, due to the large amount of information in the interaction between mobile devices and the Internet, there will often be a phenomenon of freezing or failure to load, which greatly reduces the user experience. Usually, in order to improve the experience effect, data operations that take up more CPU are placed in a separate thread as much as possible, and the execution results are handed over to the UI thread fo...

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): H04L12/24H04M1/725H04M1/72406
Inventor 赵志强张安举崔乐乐
Owner INSPUR QILU SOFTWARE IND
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