Anyscale (CA) interview question

Design a ThreadPool class which supports: 1. initializing threads to process tasks. 2. releasing the threads before the application exits.