Bloomberg Coding Question

Anonymous User
649
May 09, 2025

In my onsite, I got a question about designing a bounded concurrent queue, where multiple threads are adding to a queue, and when it's full, these threads will block waiting for an element to be pulled from the queue. The threads pulling from the queue will also block if the queue is empty until there's an element to pull

Comments (3)