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.