You will develop a multithreaded producer and consumer application. The producer will add 15 strings of various length (5 characters or more) to the buffer. You can hardcode 15 strings of arbitrary length (5 characters or more) in the producer class. You need to create one producer thread. Consumer is going to read each string […]
Tag Archives: synchronization
Explain in a paragraph what synchronization is and why we need it. Include a brief description of the producer consumer problem.
Process Synchronization Mostly use class presentations. Review questions for process synchronization: (1) Explain in a paragraph what synchronization is and why we need it. Include a brief description of the producer consumer problem. (2) What is a critical section? Describe an example. (3) Can you think of your own example of a deadlock (other than […]