About this question
Hard · concurrency · Quant Developer interview question · lock-free, memory-management, concurrency, low-latency, c++
In low-latency trading systems, lock-free data structures are extensively used to ensure deterministic performance and avoid thread contention. However, memory reclamation in these structures is challenging because a thread might attempt to free a node while another thread is concurrently reading it. Epoch-Based Reclamation (EBR) is a widely used technique that defers the destruction of removed nodes until no active thread can possibly hold a reference to them. Task Implement an EpochBasedRecla