On Fri, Feb 24, 2023 at 11:34 AM John R. Hogerhuis <[email protected]> wrote:
> > Yes. Sounds like something is broken or badly written. Some non-blocking > loop. > > Generally a program waiting on terminal input has absolutely nothing to do > but wait for the OS to wake it up with a character. > > -- John. > And "wait" is probably even the wrong term for it. The program would spend most of its time blocked on a read call. Now if the program is not a console app but a GUI app with a message loop, that's a little different. But properly written CPU utilization should still be low. Still blocks on dequeue. -- John.
