Java producer/consumer threads -- stopping a threads execution via wait

view story

http://stackoverflow.com – I have two threads in my Android app which are effectively in a producer/consumer relationship; the producer thread (a subclass of Thread) populates a buffer with objects, and the consumer thread (a subclass of AsyncTask) operates on that buffer. From the Java guarded locks concurrency tutorial here I gather that I could use a 'third-party' thread to coordinate this exchange, but ideally I'd like to be able to shut down the consumer thread itself via a call to wait, since its only real task is to operate on the buffer once it has been populated by the producer. The producer would then wake it (HowTos)