Add round-robin support

Makes the consumer and producer on the critical path alternately