Question: URGENT in C + + please VSC Friendly. This assignment tasks students with managing the producer and consumer problem. This is similar to assignment 6

URGENT in C++ please VSC Friendly.
This assignment tasks students with managing the producer and consumer problem. This is similar to assignment 6, but with the addition of a bounded (finite) buffer. Utilize the Little Book of Semaphores, specifically Chapter 4.1.4-4.1.6, to assist you with understanding and handling the consumer/producer issue. To complete this assignment, you should:
Accept three arguments form the command line (30%)
First argument is number of producer threads
Second argument is number of consumer threads
Third is the size of the buffer
Producers create widgets and put them on the buffer if there is space. Consumers eat widgets, if there is a widget to eat and remove them from the buffer.
Ensure that your program can produce at least 10 items, then consume those ten items successfully, without deadlock or crashing (30%)
Display the results utilizing the standard display and/or output.txt (20%)
Exit the program successfully once you have produced and consumed 10 items (20%)
Save your program file as 6.cpp. Each of the bold bullets are worth the listed percentage.
 URGENT in C++ please VSC Friendly. This assignment tasks students with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!