返回题库

Quant Interview Practice Questions

专题
systems
难度
L4
来源
MyntBit

题目详情

Low-latency trading systems often bypass the operating system kernel to manage memory directly, reducing translation lookaside buffer (TLB) misses and avoiding non-deterministic page faults. A common technique is to pre-allocate a pool of 2MB "huge pages" and manage them in userspace using a buddy memory allocation algorithm. This ensures deterministic, microsecond-level latency for high-frequency trading applications. Task Implement a BuddyAllocator class that manages a contiguous virtual memo