Unlock instant, AI-driven research and patent intelligence for your innovation.

Cache data processing method and device

A technology for caching data and processing methods, which is applied in the field of data processing, can solve problems such as low efficiency, and achieve the effect of improving efficiency

Active Publication Date: 2019-12-10
BEIJING GRIDSUM TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a cache data processing method and device to solve the problem of low efficiency in the related art when implementing multiple threads to read and write cache data without blocking threads

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
  • Cache data processing method and device
  • Cache data processing method and device
  • Cache data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0024] It should be noted that the terms "first" and "second" in ...

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 cache data processing method and device. The cache data processing method comprises the steps of obtaining a data reading request; obtaining a name of to-be-read data according to the data reading request, wherein cache data comprises the to-be-read data; searching a storage address corresponding to the name of the to-be-read data from a mapping relationship; and reading the to-be-read data according to the storage address corresponding to the name of the to-be-read data. Through application of the method and the device, the problem of low efficiency when the cache data is read / written by multiple threads and the threads are not congested in the related art is solved, and an effect of improving the cache data reading / writing efficiency when the threads are not congested is achieved.

Description

technical field [0001] The present invention relates to the field of data processing, in particular, to a buffer data processing method and device. Background technique [0002] In the running of computer programs, the cache mechanism is widely used, and the correct use of the cache can greatly improve the performance of the program. In a multi-threaded program, it is usually necessary to coordinate issues such as sharing cached data among multiple threads and synchronizing between read and write threads. In order to coordinate the reading and writing of cached data by multiple threads, there are two common technical solutions: exclusive lock and copy-on-write (Copy On Write). The lock must be obtained before reading and writing the cached data. The thread that acquires the lock can read and write the cached data, while other threads cannot operate on the cached data, such as exclusive locks, read-write locks, etc. Using an exclusive lock to coordinate the reading and writ...

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): G06F12/10
Inventor 杨青峰
Owner BEIJING GRIDSUM TECH CO LTD