Data read-write method and system, electronic equipment and storage medium

A technology of data reading and writing and data reading, which is applied in the field of data transmission and can solve the problems of reading and writing confusion in the cache layer

Active Publication Date: 2019-12-20
WUBA
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a data reading and writing method, system, electronic equipment and storage medium to solve the problem of chaotic reading and writing of the cache layer in the existing data reading and writing system

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 method and system, electronic equipment and storage medium
  • Data read-write method and system, electronic equipment and storage medium
  • Data read-write method and system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] 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 embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0066] see figure 1 , is a schematic diagram of an execution method of a method for reading and writing data provided in an embodiment of the present application. The method can be applied to servers, PCs (personal computers), tablet computers, mobile phones, and other terminals with high IO concurrency.

[0067] like figure 1 As shown, the method includes:

[0068] S1. Receive request information sent by the control layer, where the request information inclu...

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 embodiment of the invention provides a data read-write method and system, electronic equipment and a storage medium, and the method comprises the steps: receiving request information transmitted by a control layer, transmitting to-be-read data to the control layer through a lockable data reading channel, receiving rewritten data sent by the control layer through a lockable data updating channel, and sending the rewritten data to the data layer through a lockable data exchange channel,, wherein at least one of the data reading channel and the data updating channel and the data updating channel and the data exchange channel is in a locking state. Visibly, the cache layer is inserted between the control layer and the data layer, so that the requirement that multiple threads read the samedata at the same time during IO high concurrency is met, and meanwhile, after the cache layer is inserted, orderly transmission of the data in the cache layer is effectively guaranteed through all lockable data channels.

Description

technical field [0001] The present application relates to the technical field of data transmission, in particular to a data reading and writing method, system, electronic equipment and storage medium. Background technique [0002] The normal operation of APP (Application, application program) is based on the data reading and writing system, and the data exchange in the data reading and writing system is based on the IO (Input / Output, input / output) operation between the control layer and the data layer Achieved. [0003] When one app is running or multiple apps are running at the same time, there will be high concurrency of IO operations of multiple threads, that is, the same data in the data layer is read or rewritten by multiple threads at the same time, causing each thread to run and wait. In order to solve the above problems, the usual method is to set up a cache layer between the data layer and the control layer, so that the data to be read and rewritten are stored in t...

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): G06F9/54G06F16/23
CPCG06F9/544G06F16/2343
Inventor 薛勇吕庆春彭飞
Owner WUBA
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