Data reading and writing method and device
A reading and writing method and data writing technology, applied in the field of data processing, can solve problems such as low concurrency efficiency and disordered conflict, and achieve the effect of improving concurrency efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] According to an embodiment of the present invention, an embodiment of a method for reading and writing data is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0041] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. figure 1 It shows a hardware structural block diagram of a computer terminal (or mobile device) for realizing the data reading and writing method. like figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (shown by 102a, 102b, ..., 102n in the figure) processor 102 (the processor 102 may includ...
Embodiment 2
[0112] According to an embodiment of the present invention, an embodiment of a method for reading and writing data is also provided, Figure 7 It is the flow of a data reading and writing method according to Embodiment 2 of the present application, such as Figure 7 As shown, the method includes:
[0113] Step S71, the data reading module searches for the target storage unit from the storage queue, wherein the storage queue includes a plurality of storage units, and each storage unit includes: a first field for storing elements and a second field for storing read-write identifiers field.
[0114] Specifically, the above-mentioned data reading module may be a Handler. The storage queue can be a blocking queue applied in a distributed database, and the queue is a bounded queue. The above-mentioned read-write identification is an identification used to represent the read-write status of the storage unit, and is used for the data writing module or the data reading module to det...
Embodiment 3
[0165] According to an embodiment of the present invention, a device for reading and writing data for implementing the method for reading and writing data in Embodiment 1 is also provided, Figure 9 It is a schematic diagram of a data reading and writing device according to Embodiment 3 of the present application, such as Figure 9 As shown, the device 900 includes:
[0166] The search module 902 is used for the data writing module to find the target storage unit from the storage queue, wherein the storage queue includes a plurality of storage units, and each storage unit at least includes: a first field for storing elements and a first field for storing read Write the second field of the identifier.
[0167] The judging module 904 is used for the data writing module to judge whether the target storage unit is empty according to the second field of the target storage unit.
[0168] Write module 906, for when the target storage unit is empty, the data write module writes the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com