In C++
This exercise involves implementing the solution to the bounded buffer/readers and writers problem using threads.
You will create a program that accepts four command line arguments:
The program will create a thread for each producer and consumer. As each thread produces or consumes a data item, it will print its status.
Here are some sample runs:
If not enough arguments are provided, the program should print an error message and exit.
If an argument is less than or equal to 0, the program should print a message and exit
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here