producer-consumer stub