Method and system for solving multi-thread problem caused by CPU optimization
A multi-threading and threading technology, which is applied in the directions of parser generation, program code conversion, software engineering design, etc., can solve problems such as multi-threading result abnormalities, and achieve cross-platform portability, program development time saving, and strong versatility Effect
- 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: When the program code includes several independent functional functions, set thread affinity for each functional function, so that all functional functions run in the same thread when performing CPU optimization;
[0028] S2: Perform CPU optimization on the program code.
[0029] In the embodiment of the present invention, thread affinity refers to setting a certain thread to run on one CPU. When there are multiple functional functions, all the multiple functional function threads are set in the same CPU. Make all functions run in the same thread when performing CPU optimization.
[0030] The method for solving the multi-threading problem caused by CPU optimi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


