Cgroup Memory Limit Enforcer - Quant Developer Interview Question
Difficulty: Hard
Category: systems
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: systems, memory-management, data-structures, heap
Problem Description
Resource isolation via containerization is critical in high-frequency trading infrastructure to prevent single-strategy memory leaks from destabilizing shared systems. An Out-Of-Memory (OOM) controller enforces strict resource limits by prioritizing the termination of low-priority or high-consumption processes during contention. This simulation models the logic used by Linux cgroups to maintain system stability under heavy load.
Task
Implement a class MemoryController that manages a fixed amoun
Practice this hard developer interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.