Problem I am trying to write a multi-threading program which implements the Producer/Consumer model. Typically, I want to use one […]
Tag: producer-consumer
Producer/Consumer programs
Problem I am studying mutual exclusion in college, and we just covered the producer/consumer problem. The class does not involve […]
Producer Consumer using custom blocking queue
Problem After the feedback I have got from this question, I tried to to re-implement the classic Producer Consumer problem […]
One producer and multiple consumers wherein the producer has to wait until all consumers finish before adding more data
Problem I am trying to solve the scenario involving 1 producer and 5 consumers. The producer puts data to queue […]
Producer-Consumer Semaphore Implementation
Problem I have implemented a Producer-Consumer by Semaphore implementation. I am looking forward to for your code review comments. Thanks. […]
Producer/Consumer Multi-Thread implementation – Is the solution correct?
Problem I recently faced this following question in a Java coding round, needless to say I did not get a […]
Thread pool implementation in Java
Problem I am studying multi-threading and have tried to implement a thread pool. Please provide feedback, mostly from multi-threading point […]
Simulation of Multiple Producer Consumer
Problem I am trying to implement the Multiple Producer-Consumer problem. I have made the buffer as the lock to maintain […]
Producer consumer water cooler example
Problem I have written a water cooler example in which the consumer drinks from the water cooler until it’s empty […]
Event-based producer/consumer in C#
Problem I want to create a production-ready producer/consumer that could help me avoid thread synchronization hell. Is this thread-safe? The […]
- 1
- 2