Debug and Extend a Priority-Aware Python Thread Pool
Company: ByteDance
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Onsite
Overview: Debug and extend a Python thread pool with stable priority scheduling under concurrent submissions. Define safe behavior for worker failures, exceptions, shutdown, cancellation, starvation, and deterministic race testing.