[40] Implement thread pool with task scheduling