The invention discloses a high-
concurrency time series data processing method and device for an anti-unmanned aerial vehicle
system. According to the method, a lock-free
hash table is adopted in a cache space to cache
time sequence data, lock overhead is reduced through lock-free cache design and CAS atomic operation, the batch writing
throughput is high, the conflict probability is low, multi-thread high-
concurrency reading and writing are supported, thread competition and blocking caused by a traditional cache mechanism are thoroughly eliminated, and the concurrent
processing capacity is improved; meanwhile, the expenditure of dynamic memory allocation is reduced through batch writing, and the memory
utilization rate is increased; through quick positioning of a
compound key, priority query of a hotspot data index structure and a lock-free reading mechanism, the query
delay of hotspot data is extremely low, the
delay of related query in the future is further reduced through a data preloading mechanism, and the real-
time response capability is improved; based on a dynamic
elimination mechanism of an
elimination score, hotspot / recent data can be reserved preferentially, the
resource utilization rate is ensured, the
cache hit rate is remarkably improved, and the
access frequency of the TSDB is greatly reduced.