Quant Interview Practice Questions
题目详情
In low-latency trading systems, market data is typically ingested by a dedicated producer thread and consumed by trading strategy threads without the overhead of traditional locks. To minimize latency and avoid race conditions, quantitative developers utilize atomic variables with specific memory ordering constraints to safely publish and read price updates. Task Implement a class AtomicPricePublisher that uses std::atomic to safely publish and read the latest best-bid price across multiple thr