Graceful Shutdown Handler - Quant Developer Interview Question
Difficulty: Easy
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, signals, atomic, cpp17
Problem Description
High-frequency trading systems require robust lifecycle management to prevent data corruption or undefined states during abrupt termination. Signal handling allows applications to intercept termination requests and execute a graceful shutdown sequence, ensuring orders are finalized and resources are released safely before the process exits.
Task
Implement the GracefulShutdown class to manage application lifecycle events via POSIX signal handling. The class must register a handler for SIGTERM th
Practice this easy 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.