Question

C Programming

Process Synchronization

Please see the attached picture for the slide to use to give the answer.

The solution given to the bounded buffer problem in the slides requires three semaphores - can the problem be solved with less? Explain.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Producer Consumer problem if solved using semaphores cannot be solved by using less than three semaphores because as producer produces data and add it to buffer, consumer will try to remove data from buffer and consume it, So we have to make sure that when buffer is full, producer does not produce data and when buffer is empty, consumer does not remove data from the buffer we need to use three semaphores.

Add a comment
Know the answer?
Add Answer to:
C Programming Process Synchronization Please see the attached picture for the slide to use to give...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT