A data reading and writing method, system, electronic device 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: 2021-09-07
WUBA
View PDF9 Cites 0 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
  • A data reading and writing method, system, electronic device and storage medium
  • A data reading and writing method, system, electronic device and storage medium
  • A data reading and writing method, system, electronic device 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 with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

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

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

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

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 data reading and writing method, system, electronic equipment, and storage medium provided by the embodiments of the present application, wherein the method includes: receiving the request information sent by the control layer; transmitting the data to be read to the The control layer; through the lockable data update channel, receive the rewritten data sent by the control layer; through the lockable data exchange channel, send the rewritten data to the data layer; wherein, the data At least one of the read channel and the data update channel, and between the data update channel and the data exchange channel is in a locked state. It can be seen that this application not only meets the requirement of multiple threads reading the same data at the same time when the IO is high concurrency by inserting the cache layer between the control layer and the data layer, but also effectively guarantees the insertion of the cache layer through each lockable data channel After that, the data is delivered in order in the cache layer.

Description

technical field [0001] The present application relates to the technical field of data transmission, and in particular, to a data reading and writing method, system, electronic device and storage medium. Background technique [0002] The normal operation of APP (Application) 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. realized. [0003] When one APP runs or multiple APPs run 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 wait for running. 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 the data to be rewritten are stored in the cache laye...

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/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