996677 wrote:Well, there are comments that explain it. Which part don't you understand?
I do not totally understand what is is doing ? Could somebody explain it to me ?
Also I should change it so that there are two producers and producer tells "its name" when it taking/trying to take things from buffer. How to do the change ?Tell its name to whom? And how?
996677 wrote:What did you try? And what help are you expecting? Because as you put it now, you make it seem like you want people to do it for you.
Sorry, I meant that I have to change the program in following way: There are two consumers, and consumer in action tells its name during activity (for example: consumer1 reads .../consumer2 reads..)