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

Method for achieving multi-message queue mechanism to improve performance in single process

A message queue and multi-message technology, applied in the field of operating systems of mobile terminals, can solve problems such as reducing system performance, affecting the speed of user response, and not being able to prioritize emergency response message processing, so as to ensure operating performance, improve speed, reduce delayed effect

Active Publication Date: 2013-03-27
SHANDONG UNIV
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the deficiencies in the prior art, the present invention provides a method for improving performance by implementing a multi-message queue mechanism in a single process, so as to solve the problem that in the process of processing user responses in the Android system, the processing of emergency response messages cannot be guaranteed first, which affects users. The speed of response, problems that reduce system performance

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0025] A method for improving performance by implementing a multi-message queue mechanism in a single process is applied in the Android system. The system includes a Handler module with a priority judgment function and a Looper module with a multi-message queue management function. The Handler module is used to The message is stored in the corresponding priority message queue according to the urgency, and is responsible for sending and receiving messages to be processed in the message queue; the Looper module is used to manage the circulation and execution of multiple message queues; the Handler module includes a priority judgment unit and a message sending and receiving unit , wherein the priority judging unit is used for judging the priority of the message, and the message sending and receiving unit is used for sending the message to the message queue and sending the message to be processed to the sub-thread for execution; the Looper module includes a priority management unit ...

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 a method for achieving a multi-message queue mechanism to improve performance in a single process, and belongs to the technical field of an operation system of a mobile terminal. The method is mainly characterized by comprising the following steps of: changing a manufacturing method of a single-thread single-message queue, increasing the message queue of a single thread, and dividing the priority level among a plurality of message queues; storing the received response message into different priority levels of message queues according to the emergency degree; and processing the message queues according to the order of the priority levels, so as to achieve intelligent treatment of messages. By adopting the method, the original message circulating mechanism of an Android system is optimized; delay and lag of operating the Android system by a user can be reduced; the response speed of the user is improved; and the operating performance of the system is ensured.

Description

technical field [0001] The invention relates to a method for improving performance by implementing a multi-message queue mechanism in a single process, and belongs to the technical field of operating systems of mobile terminals. Background technique [0002] Android is the name of the open source mobile operating system based on the Linux platform released by Google, and it is the mainstream operating system for mobile terminals and various embedded terminals. [0003] However, when the Android system responds to certain user operations, the system performance will be reduced. For example, the animation effect in response to the click operation lags; there is a delay in interface switching, etc. In the internal mechanism of the Android system, it is the UI main thread that handles such user interaction operations. The sub-threads of the UI main thread receive user operations, convert various operation events into messages and send them to the message queue of the UI main t...

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
IPC IPC(8): G06F9/48
Inventor 张海霞孙文袁东风徐加利徐祥桐翟庆羽孙志猛王宏宾纪洪亮李宗璋
Owner SHANDONG UNIV
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