Do you mean "provide C++ code
for this question"?
Nothing could be easier!
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Write a program to model the producer consumer problem. " <<
"The producer has a fixed buffer size and cannot produce when it is full. " <<
"On the other side, the consumer consumes form a fixed buffer size that is fed by the producer. " <<
"The consumer cannot consume from an empty buffer.";
}
Note: precise formulation of Question can be critically important.
—SA