hia, the below program is a Simulation of Producer-Consumer Problem using Race Condition.Please can anyone help me to finish this program in java language.Thanks a lot
lux melxxx
That's C, not Java. And the code is far from complete, can you give more detail?
hia, i want to write the program in java language.The program is a Simulation of Producer-Consumer Problem using Race Condition, using SLEEP/WAKEUP.
chessxx
>i want to write the program in java language
Then you're using the wrong language.
>The program is a Simulation of Producer-Consumer Problem using Race Condition, using SLEEP/WAKEUP.
Typically when I ask for more detail, I'm looking for something other than a regurgitated version of the original question with an addition that's obvious from looking at the code. You haven't told me anything new, but I'll give you one more try before I plonk you.
>i want to write the program in java language
Then you're using the wrong language.
>The program is a Simulation of Producer-Consumer Problem using Race Condition, using SLEEP/WAKEUP.
Typically when I ask for more detail, I'm looking for something other than a regurgitated version of the original question with an addition that's obvious from looking at the code. You haven't told me anything new, but I'll give you one more try before I plonk you.
Right, i want to have one producer, one consumer and a buffer of size 100.Everytime the consumer consume, buffer size is decrease by one and producer is notified and vice-versa.
Any help of coding will be really appreciazted but if not thank you.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.