Synchronous method performing mutual exclusion access on shared resource, device and network equipment

A technology for sharing resources and synchronizing devices, applied in the field of data communication, can solve problems such as no data consistency guarantee, restricted application scope, waste of system resources, etc., and achieve the effects of improving concurrency efficiency, improving system performance, and reducing complexity

Inactive Publication Date: 2010-01-20
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF1 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] The above patents do not guarantee the data consistency between writers, and the restrictions used greatly restrict the scope of application of this method, especially the second Article, which almost limits the use of this technology only in some special cases, because the maximum access time of shared resources for read or write operations can only be determined in very few special cases, and if the time interval T is set too long , it will cause a waste of system resources

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
  • Synchronous method performing mutual exclusion access on shared resource, device and network equipment
  • Synchronous method performing mutual exclusion access on shared resource, device and network equipment
  • Synchronous method performing mutual exclusion access on shared resource, device and network equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The purpose of the present invention is to provide a synchronization method, device and network equipment for mutually exclusive access to shared resources, reduce system overhead, and improve the system's concurrency efficiency, so that multiple readers and one writer can simultaneously access shared resources. access.

[0040] The present invention is described below in conjunction with accompanying drawing, and the present invention provides a kind of synchronous method to mutually exclusive access to shared resource, figure 1 A schematic diagram of Embodiment 1 of a synchronization method for mutually exclusive access to shared resources is given in the present invention, and the method includes:

[0041] Step S1, lock lock one, point the shared resource pointer variable to the original copy of the shared resource, and unlock lock one;

[0042] The shared resource pointer variable points to a copy of the shared resource, and is used to access the shared resource th...

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 synchronous method performing mutual exclusion access on shared resource, a device and network equipment. The invention accesses the shared resource by introducing shared resource pointer variable, establishes a copy of the shared resource when performing writing on the shared resource to be specially used for resource update, uses two locks to respectively protect the shared resource pointer variable and the shared resource copy, simplifies the introduction of complex shared resource into introduction of pointer variable, thus reducing the complexity of critical region operation, improving the system performance, ensures plural readers and one writer to access the shared resource simultaneously, achieving the effect of self sole occupation of data, and enhancing the system concurrency rate to a great degree.

Description

technical field [0001] The invention relates to a synchronization method, device and network equipment for mutually exclusive access to shared resources, belonging to the technical field of data communication. Background technique [0002] Several concepts involved in the present invention are firstly explained below. [0003] Shared resource: refers to the data that multiple threads in the system will access; it is necessary to prevent concurrent access to shared resources, because if multiple execution threads access and manipulate data at the same time, it is possible for each thread to overwrite the shared data. Causes the accessed data to be in an inconsistent state. [0004] Competition condition: When the calculation result is completely dependent on how two or more threads are executed alternately, a competition condition is formed. For example, when multiple threads access shared resources concurrently, the operation result depends on the order in which the threads...

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 Applications(China)
IPC IPC(8): H04W24/00
Inventor 宋树迎
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products