Back to problems

Debug a Buggy Distributed Job Scheduler (Concurrency, Deadlocks, Rate Limiting, and Testing)

AI Coding · OpenAI · Hard

Problem: Diagnose a Flawed Distributed Job Scheduler (Python) The interviewer will supply Python code for a job scheduler that uses multiple threads and/or processes to assign and run work. Its current behavior is incorrect and can involve: Race conditions in shared data Deadlock scenarios Excessive contention around locks Broken rate-limit handling (such as allowing too many jobs through, blocking at the wrong time, or failing on boundary cases) Your tasks Inspect and…

Checking your access…