When the file descriptor on which read() and write() apply is set up in such a way so that these syscalls block (for instance, until no data is available to read() from a serial port), I wonder following:
What's the processor doing with this process while waiting, in general, in a *NIX? Is it busy-waiting, or sleeping?
What's the processor doing with this process while waiting, in general, in a *NIX? Is it busy-waiting, or sleeping?
Comment