The invention relates to a conflict detection rule lock-free updating method for a
network security access control strategy, and belongs to the technical field of
network security. According to the method, the memory can be recycled in time under the condition that the lowest
delay of the read thread is guaranteed to the greatest extent, and a special write thread recycling stage or a special garbage recycling thread is not needed. According to the method, the cache block is applied in the memory in advance and is defined as the structure of the space table, so that the overhead of the
system caused by frequent application and release of the memory can be avoided, and the memory can be allocated in a universal available space table
free list. The memory blocks which are not used can be directly used, if the cache blocks are all occupied by the threads, distribution is applied from a
system, and the memory blocks are not directly released after being used and are stored by a
free list. According to the method, a quick, safe and stable
access control rule updating
algorithm is realized through a lock-free mechanism, and the problems of low efficiency and large influence on
concurrency under the condition of using a lock are avoided.