This is a better way to make sure these processes don't fill up the buffer and end up getting blocked.