Method and device for preventing thread from blocking
A thread and one-line technology, applied in the field of preventing thread from blocking, can solve problems such as failure to trigger event A, program cannot be executed smoothly, thread B is blocked, etc., to achieve the effect of facilitating popularization and promotion, ensuring smooth execution, and overcoming blocking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0032] In view of the problems in the prior art, the present invention proposes a solution for preventing thread blocking in a multithreaded program.
[0033] Based on the previous introduction, it can be known that thread blocking may be caused by various reasons, such as deadlock, lock abandonment, and wait event triggering. The present invention provides corresponding solutions for the above reasons. The following are respectively Introduction.
[0034] In Windows systems, critical sections are usually used to implement the lock function.
[0035] 1) Wait for the event to trigger
[0036] In order to overcome the thread blocking caused by waiting for the event to be triggered, the following processing methods can be adopted: after the system is started, replace (HOOK) all the application programming interface (API, Application Programming Interface) functions in the system for waiting for the event to be triggered, so that When any API function after HOOK is called by a thread, if...
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.
© 2023 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap