Mutual exclusion semaphore abnormal blocking auxiliary analysis method and system and storage medium
A technology of mutual exclusion signals and auxiliary analysis, applied in the field of multi-threaded programming, can solve problems such as difficult to determine the problem code, and achieve the effect of rapid positioning
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0035] Mutual exclusion semaphores are usually used for access protection of shared resources, and locks are required before access. At this time, other processes are not allowed to access shared resources, and can only be in the pending waiting state. Multiple processes need to queue up to wait for the same semaphore. After accessing shared resources, unlock is required, and other waiting threads can access resources in order.
[0036] Since the use of mutexes must occur in pairs in the same thread, the number of locked times in the normal state is equal to the number of unlocked times. Using this feature, record the information before and after the lock of the semaphore respectively. The information here includes the lock count, thread name, function name, code line number and thread id (note: the lock count must be recorded after the lock). In this way, when blocking occurs, the position of code pending can be judged by observing the record information before the lock.
...
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