Thread synchronization method and thread synchronization system
A technology for synchronizing systems and threads, applied in the direction of program synchronization, program control design, multi-program device, etc., can solve problems such as deadlock, other threads cannot access the protected area, and the protected area cannot be released or reset. The effect of avoiding deadlock
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
[0034] The embodiment of this application provides a thread synchronization method, such as figure 1 shown, including:
[0035] S101: Define a global variable, the global variable includes a first variable and a second variable, the first variable includes a first state and a second state, and the second variable is used to lock the first variable;
[0036] S102: Create a new mutex class object in each protection area, the class includes a destructor and a po...
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