Thread lock optimization method
An optimization method and thread lock technology, applied in the computer field, can solve problems such as low performance, low theoretical and technical requirements, etc., and achieve the effects of performance improvement, security, and occupancy reduction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0020] The optimization method of thread lock of the present invention comprises the following steps:
[0021] Determine the critical section (CS, critical section) in memory;
[0022] Using the synchronization primitives provided by the CPU, the control thread lock is responsible for protecting the key section. Before a thread enters the key section, it needs to obtain the access right of the thread lock to ensure that only one thread can enter the CS at the same time.
[0023] The key segment is a memory space storing shared variables, and the determination of the key segment can be specified by those skilled in the art (or users) according to actual needs. The purpose of the present invention is to utilize the synchronization primitives provided by some CPUs to realize atomic access (atomic access) to a shared variable, that is, to...
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