Enter 'd' : decrease
consumer speed.
Enter 'q' : to
quit
The quit part is not compulsory.
2. The menu appears just once at the beginning of
the program. Give the user some time to familiarize with program
menu.
3. Then start the producer and consumer and print
messages to indicate that they have started.
4. Now whenever the user sees warning messages
because of buffer overflow, he'll press a character(say 'c') followed by
<enter>. ( Note that the program does not prompt the user for
input)
5. Also i found from a student that because of the
<enter> following the input , u'll need an extra println()
statement just before printing a warning or any other message, so that the input
can be read properly.
6. If you want to get rid of the <enter> try
using the KeyListener Interface.
7. Finally, the items contains current system time
(obtaining the Date class mentioned in the assignment) and items are produced
every 1 second in real time and consumed every 5 seconds in real time (at the
start)
8. Change of priority of threads should not be
needed to complete the assignment.