About this question
Medium · systems · Quant Developer interview question · systems, string-parsing, c++, low-latency
Low-latency trading systems require strict memory management to prevent fragmentation and ensure deterministic performance. Monitoring the /proc/self/status pseudo-file on Linux allows applications to track resident set size and virtual memory usage in real-time to detect leaks and maintain system stability. Task Implement the parse method within the ProcessMonitor class to extract specific memory metrics from a raw string representing the content of /proc/self/status. The method must efficient