Wednesday, September 29, 2010
Mid-Term Opportunity Session, Tuesday October 12
The mid-term opportunity session is scheduled for Tuesday, October 12. Review will be on Tuesday, October 5th.
Monday, September 27, 2010
WSU Student Rachel Beauchene Pepsi refresh projects needs your vote
Please take 2 minutes to vote for a fellow students Pepsi refresh project. Voting ends on 9/30/2010 so please vote as soon as you can AND pass on the link to all your contacts.
http://www.refresheverything.com/lacrossespayandrescue
http://www.refresheverything.com/lacrossespayandrescue
Saturday, September 25, 2010
Assignment 3 due on Tuesday, September 28
Implement the Painter class on page 25 of the class notes.
Thursday, September 16, 2010
Due Tuesday September 21, no later than Tuesday September 28
Extend the Producer/Consumer problem discussed in class. The Producer creates String("1","2". etc) and puts them into a box. The Box can hold up to a maximum number of Strings, say 4. The Consumer gets Strings from the Box and displays them. The strings must be written to the screen in the same order in which they are put into the box.
Design and implement Producer, Consumer, and Box classes. Note the Box should be implemented as a Queue class. The Queue must be "thread safe". The Producer sleeps a random time between 1 to 100 ms before it places another item in the queue and the Consumer sleeps a random time between 1 to 75 ms before it takes another item from the Queue. Display an appropriate message each time the Producer must wait for the Queue (when it is full) and each time the Consumer must wait for the queue (it is empty). That is, some blocking should be observed.
You can choose either the approach of using Thread subclasses or the Runnable interface. All exceptions should be handled in a responsible manner.
EXTRA CREDIT:" Use multiple Producers (5) and Consumers (3). when a Producer finishes it should output a message "I ------am done producing" and the Consumers go until there are no more Producers and the Queue is empty.
Be sure to develop good test cases.
Design and implement Producer, Consumer, and Box classes. Note the Box should be implemented as a Queue class. The Queue must be "thread safe". The Producer sleeps a random time between 1 to 100 ms before it places another item in the queue and the Consumer sleeps a random time between 1 to 75 ms before it takes another item from the Queue. Display an appropriate message each time the Producer must wait for the Queue (when it is full) and each time the Consumer must wait for the queue (it is empty). That is, some blocking should be observed.
You can choose either the approach of using Thread subclasses or the Runnable interface. All exceptions should be handled in a responsible manner.
EXTRA CREDIT:" Use multiple Producers (5) and Consumers (3). when a Producer finishes it should output a message "I ------am done producing" and the Consumers go until there are no more Producers and the Queue is empty.
Be sure to develop good test cases.
Tuesday, September 7, 2010
Assignments due Tuesday September 14
Write a 1-2 page paper about why the stop method was deprecated, how do you fix the problem and why the fix works. Also due on this date - have your animation applet ready to demo to the class.
Wednesday, September 1, 2010
Assignment due 9/14
Assignment that is due on Tuesday, September 14 Create an applet that does some sort of animation and uses a thread to control the animation. You will need to demo your applet to the class on Tuesday the 14th. Have fun!
Assignment due Tuesday 9/7
Due for Tuesday, September 7th write a 1-2 page description on applets - signed and/or trusted - and how they work based on research from the web.
Subscribe to:
Posts (Atom)