Method and device for updating data
A data update and data technology, applied in the computer field, can solve problems such as waste of system resources, achieve the effect of small memory space and save system resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] figure 2 It is a flow chart of a data update method provided in Embodiment 1 of the present invention, specifically including the following processing steps:
[0057] Step 201, when there is data to be updated, store the updated data in the free storage space in the data table.
[0058] Step 202: Store the data index corresponding to the update data and the storage address of the update data in the data table in an update queue.
[0059] Wherein, the update queue can be an update circular queue. When the data index corresponding to the update data and the storage address of the update data in the data table are correspondingly stored in the update circular queue, each data in the update circular queue Each index is assigned a time stamp, and the time stamp indicates the time when the data index and the storage address corresponding to the data index enter the update circular queue.
[0060] When the number of effective positions of the data index stored in the update...
Embodiment 2
[0075] According to the data table in the data update method provided by the above-mentioned embodiments of the present invention, Embodiment 2 of the present invention also provides a method for reading data from the data table, such as image 3 As shown, it specifically includes the following processing steps:
[0076] Step 301, the visitor copies the index address table.
[0077] In this step, the visitor can copy the data index in the index address table and the storage address corresponding to the data index to the local index address table according to the index address table on the SHM, and use the local index address table as Copy index address table. The visitor can also copy the data index to be subscribed and the storage address corresponding to the data index to be subscribed in the index address table on the SHM to the local index address table according to the data index subscribed by itself, and copy the local index address table. The index address table serve...
Embodiment 3
[0085] Based on the same inventive concept, according to the data update method provided by the above-mentioned embodiments of the present invention, correspondingly, Embodiment 3 of the present invention also provides a data update device, the structural diagram of which is as follows Figure 4 shown, including:
[0086] The first storage unit 401 is used to store the update data in the free storage space in the data table when there is data to be updated;
[0087] The second storage unit 402 is configured to correspondingly store the data index corresponding to the update data and the storage address of the update data in the data table in an update queue;
[0088] The index address table update unit 403 is configured to use the storage address corresponding to the data index corresponding to the update data in the update queue to update the storage address corresponding to the data index in the index address table, and the index address table records the data The correspon...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 