$ 0 0 A blocking read does not consume CPU. The OS will put the calling thread/process to sleep.That loop is fine.