Low-Latency Order Signal - Quant Developer Interview Question
Difficulty: Easy
Category: concurrency
Asked at: Akuna, Jump Trading, Tower Research, Optiver, HRT
Topics: concurrency, semaphore, c++17, multithreading
Problem Description
The Order Matching Engine (OME) and Risk Management system are often separated in low-latency trading systems into distinct threads to maximize throughput while maintaining data integrity. Efficient signaling mechanisms, such as binary semaphores, are essential to coordinate these components in a lockstep fashion without inducing race conditions or deadlocks.
Task
Implement a BinarySemaphore class using std::mutex and std::condition_variable to facilitate strict synchronization between a produc
Practice this easy developer interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.