Sleep instead of busy waiting.