Details of this Paper

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

Description

solution


Question

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).

 

Paper#65494 | Written in 18-Jul-2015

Price : $52
SiteLock