Bounded Buffer Producer/Consumer Solution using semaphores. Download the solution on to a workstation capable of running python programs. Run the program first to ensure that it runs correctly. Comment out any one call to semWait or equivalent on any of the semaphores in either the procuder_func() or consumer_func() and document your observations. Comment out any call to semSignal or equivalent and again document your observations. Please be specific and use the terms that you learned in the lecture and your own studies.
Please the recall the following regarding the semaphore solution to this problem:
The semaphore “s” enforces mutual exclusion.
The semaphore “n” is the number of items in the buffer.
The semaphore “e” keeps track of the number of empty spaces.
THE PROGRAM IS ALREADY DONE, I JUST NEED YOU TO MAKE A COMMENT ABOUT THE PUTPUT, AS THE PROFESSOR ASKED ABOVE.
The post Bounded Buffer Producer/Consumer Solution using semaphores. Download the soluti appeared first on Skilled Papers.