Relative Content

Tag Archive for producer-consumer

How to implement a message queue over Redis?

Why Redis for queuing? I’m under the impression that Redis can make a good candidate for implementing a queueing system. Up until this point we’ve been using our MySQL database with polling, or RabbitMQ. With RabbitMQ we’ve had many problems – the client libraries are very poor and buggy and we’d like not to invest […]

What is the source of deadlock in Producer Consumer problem with circular buffer

I have a very stereotypical producer-consumer problem with a bounded buffer. It is running fine locally but when I submit to online I am getting an error that my Submission did not run 5 times successfully, indicating a deadlock. I am curious what could be the source for this? I feel like I did wait() and notify() correctly and I don’t know what other than that could be causing a deadlock.