Skip to main content

Popular posts from this blog

Yahoo! Calendar "Add Event" Seed URL Parameters

I can't seem to find any official documentation on this, so here are my notes. Some information gathered from  http://richmarr.wordpress.com/tag/calendar/ Other information gathered through trial and error, and close examination of the "Add Event" form on Yahoo!'s site. Yahoo! Calendar URL Parameters Parameter Required Example Value Notes v Required 60 Must be  60 . Possibly a version number? TITLE Required Event title Line feeds will appear in the confirmation screen, but will not be saved. May not contain HTML. ST Required 20090514T180000Z Event start time in UTC. Will be converted to the user's time zone. 20090514T180000 Event start time in user's local time 20090514 Event start time for an all day event. DUR value is ignored if this form is used. DUR 0200 Duration of the event. Format is HHMM, zero-padded. MM may range up to 99, and is converted into hours appropriately. HH values over 24 hours appear to be modulated by 24. Durations t...

Producer Consumer Design Pattern By using wait(), notify() and notifyAll() methods

Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern .   Producer Consumer Design Patter can either be implemented using following two approaces. By using wait(), notify() and notifyAll() methods By using BlockingQueue  In this post I will explain implementation using wait() and notify() method. If you are interested in the implementation using Blocking Queue, you can check my post  Producer Consumer Design Pattern using BlockingQueue . The Object class in java contains three final methods that allows threads to communicate about the lock status of a resource. These methods are wait() , notify() and notifyAll() .  We can use  wait() method to pause execution of thread. notify() and notifyAll() methods are used to wake up waiting th...