返回题库

Quant Interview Practice Questions

专题
concurrency
难度
L2
来源
MyntBit

题目详情

Quantitative trading systems rely on low-latency execution and efficient resource management to maintain a competitive edge. A fixed thread pool executor allows trading strategies to offload computationally intensive tasks, such as pricing multiple options or processing market data concurrently, without the overhead of continuously creating and destroying threads. Task Implement a ThreadPool class that manages a fixed number of worker threads. The class should provide:

  1. A constructor ThreadPo