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
Embodiment Construction
[0032] Aiming at the problems existing in the prior art, the present invention proposes a solution to prevent threads from being blocked in a multi-threaded program.
[0033] Based on the previous introduction, it can be seen that thread blocking may be caused by various reasons, such as deadlock, lock abandonment, and waiting for event triggers. The present invention provides corresponding solutions for the above-mentioned reasons, and the following are respectively carried out introduce.
[0034] In the Windows system, the critical section is usually used to implement the lock function.
[0035] 1) Wait for the event to trigger
[0036] In order to overcome the blocking of threads caused by waiting for event triggering, the following processing methods can be adopted: after the system starts, replace (HOOK) all application program interface (API, Application Programming Interface) functions for waiting for event triggering in the system, so that When any HOOKed API functio...
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