Unlock instant, AI-driven research and patent intelligence for your innovation.

A shared memory lock management control method and system

A shared memory, management and control technology, applied in the field of home gateways, can solve problems such as system paralysis and system instability, and achieve the effect of ensuring correctness, system flexibility, and solving deadlock problems.

Active Publication Date: 2019-07-12
北京中科海讯数字科技股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a shared memory lock management control method and system, which is used to solve the problem that the process in the prior art tends to cause system paralysis and system failure when accessing the shared memory of the system. stability problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A shared memory lock management control method and system
  • A shared memory lock management control method and system
  • A shared memory lock management control method and system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0033] This embodiment provides a shared memory lock management and control method. This embodiment relates to a home gateway product of the linux system, and mainly implements and improves a lock management mechanism for multi-process access to shared memory.

[0034] The main function of this embodiment is to realize the improvement and optimization of the locking mechanism of different processes accessing system shared memory data in the embedded wireless home gateway device, based on the operation and requirements in the actual use of the existing gateway, as well as the existing application process Access to the management mechanism of shared memory, improve and design a set of protection lock mechanism with multi-process access to shared memory, and at the same time prevent and deal with some unknown situations that lead to lock acquisition failure and deadlock, by distinguishing different The application process realizes the dynamic management mechanism of the shared mem...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and system for shared memory lock management control. The method and system for shared memory lock management control are applied to the process of shared memory access by a plurality of processes. The method for shared memory lock management control comprises the steps of determining and distinguishing obtaining modes of a shared memory lock for each process according to an interface function called by each process; setting a global variable, presetting the value of the global variable according to the type of the process and a system state, and distinguishing a processing mode of the process in a deadlock state through the value of the global variable. According to the method and system for shared memory lock management control, the correction during the shared memory access by each process can be guaranteed, different lock obtaining policies can be adopted when the process obtains the lock; besides, the deadlock problem caused by process abnormality can be effectively solved, different processing modes can also be adopted according to the different system states in the deadlock treatment process, and the system is more flexible, more reliable and more stable.

Description

technical field [0001] The present invention relates to the technical field of home gateways, in particular to the technical field of shared memory data in home gateway equipment, and specifically relates to a shared memory lock management and control method and system. Background technique [0002] Shared memory is a portion of physical memory shared by multiple processes. Shared memory is the fastest way to share data between processes. When a process writes data to a shared memory area, all processes sharing this memory area can immediately see the contents. At present, multi-process design is adopted in linux embedded system, and shared memory is used for communication between multiple processes. The communication process will update the collected data to the shared memory, and other processes need to read data from the shared memory. Such a model of "one process writes, multiple processes reads" requires the use of read-write locks to improve access efficiency. [00...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54H04L12/66
Inventor 张珠明
Owner 北京中科海讯数字科技股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More