turning produce and consumer buffers stacks by fifos