Low Latency Memory Warmup - Quant Developer Interview Question
Difficulty: Medium
Category: memory_optimization
Asked at: IMC, Jump Trading, Tower Research, Optiver, HRT
Topics: systems, memory, optimization, c++
Problem Description
High-frequency trading systems require deterministic latency, making operating system interruptions like page faults unacceptable on the critical path. To mitigate this, developers allocate memory upfront and "warm" it by forcing physical page allocation before trading begins, ensuring subsequent accesses do not trigger costly delays.
Task
Implement a PreFaultedBuffer class to manage a fixed-size buffer of double values and simulate memory pre-faulting. The class must support initialization, sa
Practice this medium 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.