For this assignment you are required to write a program that generates two separate windows (each created as a separate thread). The first thread (window1/producer) should take numeric and alphabetic inputs from the keyboard

profileadelen
 (Not rated)
 (Not rated)
Chat

 

For this assignment you are required to write a program that generates two separate windows (each created as a separate thread). The first thread (window1/producer) should take numeric and alphabetic inputs from the keyboard and place it in the shared memory (bounded buffer interface). The second thread (window2/consumer) should pick up the contents of the shared memory and display it on screen. However, numeric content should be multiplied by four. The figure below illustrates the concept (Note that a reference to the same buffer object
should be passed to both threads).
 
  • 12 years ago
The answer in java 100% work
NOT RATED

Purchase the answer to view it

blurred-text
  • attachment
    the_answer.zip