Method and system for solving multi-thread problem caused by CPU optimization
A multi-threading and problem-solving technology, applied in the field of Internet application development, can solve problems such as abnormal multi-threading results, and achieve the effects of ensuring cross-platform portability, saving program development time, and strong versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0025] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
[0026] see figure 1 As shown, the embodiment of the present invention provides a method for solving the multithreading problem caused by CPU optimization, including steps:
[0027] S1: setting a memory barrier in the program code, the memory barrier is used to sequentially execute all program codes before the memory barrier during CPU optimization to prevent code rearrangement;
[0028] S2: Perform CPU optimization on the program code.
[0029] By setting memory barriers and avoiding instruction rearrangement, it can effectively solve the problem of abnormal results caused by multi-threading caused by CPU optimization, which is safer and more reliable.
[0030] Among them, the memory barrier, also known as memory barrier, memory barrier or barrier instruction, is a kind of synchronization barrier instruction, which is a synchronization point...
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