InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-13

Semaphores

AI-Expanded — inferred from the question title, not from the original candidate report

Design a thread-safe bounded buffer that supports multiple producers and consumers using semaphores to manage synchronization. You must implement the logic to block producers when the buffer is full and block consumers when the buffer is empty, ensuring that no data is overwritten or read prematurely.

Context & Summary

Technical round focusing on theory concepts and puzzles

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.