Comp 3411 operating systems homework process synchronization


COMP 3411 Operating Systems Homework: Process Synchronization- Thompson Rivers University

In this homework, you will write a Java program that implements the solution to the bounded buffer problem between a producer and a consumer. The producer will produce forever and the consumer will consume forever. The producer will put data into the buffer and the consumer will remove data from the buffer. The buffer must implement a means of ensuring that the buffer never enters an under flow (take too much data out) or over flow put too much data into the buffer. Additionally the buffer must have functionality so that a critical region problem does not occur with parallel updates to the data.

Test you application by creating a java thread for the produce, the consumer and having them access a shared buffer with declared size 5.

Format your homework according to the following formatting requirements:

o The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.

o The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.

o Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Operating System: Comp 3411 operating systems homework process synchronization
Reference No:- TGS03090882

Now Priced at $100 (50% Discount)

Recommended (90%)

Rated (4.3/5)