Quant Interview Practice Questions
题目详情
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