Implementation method of double-layer lockless hash table with aging deletion based on collision
An implementation method and a two-layer technology, applied in the field of data processing, can solve problems such as efficiency problems, timer aging, casd multiple executions, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0038] Such as Figure 1 to Figure 4 shown, including the following steps:
[0039] S1: Set up a double-layer hash table; the specific steps of S1 include setting two different hash functions, assigning a double-layer hash table, and calculating for the same key to obtain two different index values, one of which is an index value Locate the position of the first-level table, and the second index value locates the position of the second-level table; this setting will increase the dispersion rate and make the data more evenly distributed in the hash table. The structure of the two tables is as follows figure 1 shown; reference figure 1 It can be seen that the double-layer hash method is more discrete than the single-layer hash method, which can make the elements in the hash table more evenly distributed, which means that in the face of the same data, especially in concurrent scenarios, double-layer hash can be faster perform lookup and insert operations.
[0040] S2: Perfor...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


