Re: deadlock in producer-consumer problem

lol It was homework. I read that page numerous times. I then realized that I'm supposed to give a sloppy solution to the producer-consumer problem. I made one process try to acquire the lock twice and I did get deadlock. (note that the lock is not re-entrant).