Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Operation method of hash table

An operation method and hash table technology, applied in the field of hash table operation, can solve problems such as affecting search performance, inapplicability of master-slave multi-core processor system, etc.

Active Publication Date: 2009-01-21
MAIPU COMM TECH CO LTD
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If each core uses its own table, but the management is still on one core, the search operation is performed on each core, which also involves data protection issues, thus affecting search performance
If each core uses its own table, management and search are performed only on its own core, each core is required to have a memory management function, which is not applicable to some master-slave multi-core processor systems

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
  • Operation method of hash table
  • Operation method of hash table
  • Operation method of hash table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] Embodiment 1: This embodiment is implemented in a master-slave multi-core processor system with one master core and one slave core. figure 1 , figure 2 , image 3 It is a schematic diagram of the Hash table and memory node linked list of two cores in this embodiment. figure 1 , figure 2 , image 3 Indicates that during initialization, operations are performed on the main core to create and initialize the first Hash table 2 and the second Hash table 3, wherein the first Hash table 2 is the Hash used by the main core for data management, and the second Hash table 3 It is the Hash table used by the slave core for data management, and then the main core allocates the required memory for the nodes corresponding to the total number of entries in the two Hash tables, and links these memory nodes through the memory node linked list 1. In order to limit the use of memory, it is generally necessary to limit the number of entries in the total Hash table, so it is reasonable ...

Embodiment 2

[0022] Embodiment 2: This embodiment is implemented in a master-slave multi-core processor system with one master core and multiple slave cores. Create a Hash table on the main core for each core including the main core and the slave core, and allocate the required memory for the nodes corresponding to the total number of entries in the Hash table of each core, and allocate these memory nodes Linked through the memory node linked list.

[0023] When a lookup operation is performed on the Hash table, the lookup operation of the Hash table of the master core is performed on the master core, and the lookup operation of the Hash tables of each slave core is performed on each corresponding slave core.

[0024] Insertion, deletion, and update operations on each slave core are as in Embodiment 1.

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 relates to a method for operating a Hash table, in particular to a method for operating the hash table under a master-slave mode parallel polynuclear processor system. The invention aims at providing a method for operating the Hash table, which can efficiently carry out operations such as establishment, inserting and the like to the Hash table and enables the operations of the Hash table not to affect the Hash table search performance. The method comprises the following steps: carrying out table establishment and memory allocation operations in Hash table management on a main nucleus, and carrying out the search, inserting, deletion and updating operations of the Hash table on each nucleus which establishes the Hash table, wherein the operations can be finished in one thread or task, the table establishment operation comprises: operating on the main nucleus, and establishing a sheet of Hash table for each nucleus which needs establishing the table, and the memory allocation comprises: allocating demanded internal memory for nodes which are corresponding to each Hash table total table entry number by the main nucleus and linking the internal memory nodes through a linked list. The method is suitable for the master-slave mode parallel polynuclear processor system.

Description

technical field [0001] The invention relates to a method for operating a hash table, in particular to a method for operating a hash table under a master-slave parallel multi-core processor system. Background technique [0002] Hash table (Hash) table is often used to store key data because of its simple structure and fast search speed, and it can easily replace the Hash algorithm. The Hash table is generally organized as an array plus a doubly linked list structure, where the linked list is used as a Hash bucket to resolve Hash conflicts. [0003] The management of the Hash table involves operations such as creation, insertion, deletion, and update. Because the Hash table is used to store key data, the lookup performance is a key indicator, and the faster the better, so the different operation methods of the Hash table management have different impacts on the lookup performance of the Hash table. [0004] In a multi-core processor system with a master-slave structure of sh...

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
IPC IPC(8): G06F17/30G06F9/50
Inventor 刘宝琴罗向征尹茂
Owner MAIPU COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products