Subj : Re: Is there a deadlock or race condition here? To : comp.programming.threads From : lindahlb Date : Thu Apr 14 2005 08:34 am Oh, small correction... while(len < 512) produce.wait(); should read: while(len == 0) produce.wait(); since we are capable of writing partial 512-byte blocks .