Design a Thread-Safe Bounded Blocking Queue
Company: Latitudeai
Role: Backend Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Overview: Design a thread-safe bounded blocking queue for multiple producers and consumers, with FIFO ordering and well-defined put, take, and close behavior. Discuss synchronization invariants, spurious wakeups, cancellation, timeouts, contention, and race-focused testing.