Search International and National Patent Collections

1. (WO2017173919) CONCURRENT DATA CACHING METHOD AND STRUCTURE

Pub. No.:    WO/2017/173919    International Application No.:    PCT/CN2017/077486
Publication Date: Fri Oct 13 01:59:59 CEST 2017 International Filing Date: Wed Mar 22 00:59:59 CET 2017
IPC: G06F 12/0884
Applicants: THE WUHAN DIGITAL PET CO., LTD.
武汉数字派特科技有限公司
Inventors: XU, Chi
徐驰
Title: CONCURRENT DATA CACHING METHOD AND STRUCTURE
Abstract:
A concurrent data caching method, the method comprising: a step A of writing in each set of data; a step A1 of monitoring for whether a write-locked state cache partition exists; if so, executing a step A2-2; if not, executing a step A2 of monitoring for whether an idle state cache partition exists; a step A21: if an idle state cache partition exists, executing a step A21-1 of selecting a set of idle state cache partitions and setting the same to be in a write-locked state; a step A21-2 of writing data in a cache partition; a step A21-3 of determining whether the data has been successfully written in or not; if so, completing the writing of the set of data; if not, setting the cache partition to be in a fully-written state, and executing step A1; a step A22 of ending data writing-in if the idle state cache partition does not exist; a step B of reading the data; a step B1 of monitoring in real time for whether a cache partition in a fully-written state exists; if so, executing a step B11 of selecting the set of cache partitions and setting the same to be in a read-locked state; a step B12 of reading cache data in the cache partitions, and setting the same to be in the idle state upon determining that reading of the cache partitions is completed, and executing step B1; if not, then executing step B1 and continuing to read data. The method can implement stringent read-write locking with respect to accessing of the cache partitions, and effectively optimize the speed of data processing.