About this question
Very Hard · concurrency · Quant Developer interview question · concurrency, simulation, two-pointers, c++, low-latency
In high-frequency trading, read-dominated configuration data such as risk limits or symbol mappings must be accessed by critical-path threads without blocking. The Left-Right concurrency pattern achieves this wait-free read access by maintaining two data instances, allowing readers to proceed unhindered while a writer coordinates updates in the background. Task Implement a simulator for the Left-Right concurrency pattern that calculates the exact completion time of each write operation. You are