Multi-priority thread message processing method
A message processing, multi-priority technology, applied in multi-program devices, inter-program communication, etc., can solve the problems of complex functions, difficult to unify the interface form, transfer parameters, etc., to achieve real-time and functional improvement, simple and clear interface , easy-to-use effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] figure 1 It is a flowchart of a multi-priority thread message processing method in the first embodiment of the present invention, including:
[0045] Step 101: Judge the thread priority of the message;
[0046] Step 102: If the message has an asynchronous priority, forward the message to the thread preprocessing interface for preprocessing through the thread message routing provided by the Windows platform; after preprocessing, it is sent to a specific thread message router;
[0047] Step 103: If the message is a callback or synchronization priority, the message is forwarded to the window for processing through the thread message routing provided by the Windows platform, and after window processing is performed, it is sent to the specific thread message router;
[0048] Step 104: If the message is a safe call priority, send the message to the specific thread message router;
[0049] Step 105: If it is determined that the message is an urgent call, send the message to the specific...
Embodiment 2
[0076] The second embodiment will describe the thread message priority mechanism.
[0077] The technical problems to be solved in the second embodiment include:
[0078] Expand the priority of thread processing messages from one level to five levels to enhance the real-time and functionality of message processing;
[0079] The message processing mechanism is expanded based on the existing platform, which is mature and reliable;
[0080] The message processing interface is clear and simple, and has good reusability.
[0081] 1. The thread message priority mechanism used by the method provided in the first embodiment is shown in Table 1:
[0082]
[0083] Table 1
[0084] The thread processing message priority provided by the platform is only asynchronous priority, so it is powerless to handle some time-demanding processing. Increasing the priority of thread message processing is achieved by using the window message mechanism provided by the platform to expand, window and thread custom ass...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com