[NCLUG] /dev/null as a source?

Bob Proulx bob at proulx.com
Tue Jun 10 14:47:25 MDT 2008


Sean Reifschneider writes:
> want to I want to get a high-performance zero source, but am

More seriously...  read() is a system call and therefore will give the
process an opportunity to context switch.  The kernel will run another
process if another process is in the run queue available to run.
Therefore in the presence of a full run queue the process will end up
getting less cpu time in the competition with other processes than if
it were just to generate zero's itself without the system call.

Bob



More information about the NCLUG mailing list