Bounded buffer with writer and readers. Both synchronize with two locks. Onw to write, one to read.