Data read-write priority balancing method, system and device and storage medium

A technology of data reading and writing and balancing, which is applied in the directions of multi-channel program device, electronic digital data processing, program startup/switching, etc. It can solve the problems of system read operation concurrency performance reduction, etc., and achieve the goal of improving read concurrency performance and expanding the scope of application Effect

Pending Publication Date: 2021-02-26
西安西热电站信息技术有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem of reduced concurrent read operation performance of the system in the prior art, the present invention provides a data read and write priority balance method, system, device, and stor

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
  • Data read-write priority balancing method, system and device and storage medium
  • Data read-write priority balancing method, system and device and storage medium
  • Data read-write priority balancing method, system and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0067] In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or examp...

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 discloses a data read-write priority balancing method, system and device and a storage medium. The method comprises the steps of: locking a data read-write request through a mutual exclusion lock; judging a read-write priority type mark of the current data according to a reference counter of the current data, wherein the read-write priority type mark comprises no read-write priority,read priority and write priority; judging read-write lock occupation conditions according to reference counters of variables corresponding to the read-write priority type marks, wherein the read-write lock occupation conditions include read lock occupation, write lock exclusive occupation and no lock occupation; obtaining a read-write priority type mark of the data according to the read-write lock occupation condition and the read-write lock maximum allowable number counter residual value; and unlocking the read-write operation of the request data through the mutual exclusion lock. Accordingto the method, the concurrency performance of data reading operation is improved, the system can run stably for a long time, the data high concurrency access performance is excellent, and a good economic effect is achieved in server software product application.

Description

technical field [0001] The invention belongs to the technical field of data reading and writing methods in server application scenarios, and in particular relates to a data reading and writing priority balancing method, system, device and storage medium. Background technique [0002] When multi-threaded security access protection is performed on a resource that allows multiple threads to read concurrently but only allows one thread to exclusively write, a read-write lock is generally used to improve the concurrent performance of reading. However, no matter which implementation technology is used for read-write locks that are widely used at present, these read-write locks can be divided into read-priority read-write locks and write-priority read-write locks according to their read-write priorities. When the resource to be protected has a relatively large amount of read concurrency, it is suitable to use a write-priority lock, and when the protected resource has a relatively l...

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
IPC IPC(8): G06F9/48G06F9/52
CPCG06F9/4881G06F9/526
Inventor 何清王毅
Owner 西安西热电站信息技术有限公司
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