From: 15300-f01@classes.uci.edu on behalf of prasad [prasad@dream.eng.uci.edu]
Sent: Monday, November 05, 2001 2:03 PM
To: khkim@uci.edu
Subject: FYI - ECE142 - Assgn3
Hi
    I've found that there is some amount of speculation about the assign 3. So here are some more details
 
1.The menu is just a set of print() showing what the user can do with this program
Sample menu :
         Enter 'a' : increase producer speed.
         Enter 'b' : decrease producer speed.
         Enter 'c' : increase consumer speed.
         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.