← Microsoft questions
CodingReported in a candidate post, Apr 2021

Producer-Consumer problem: explain and write code

Filed under Microsoft

Explain and implement the classic Producer-Consumer problem. One or more producer threads generate items and put them into a shared, bounded buffer of fixed capacity; one or more consumer threads…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.