Re: IO threading

Stephen C. Tweedie (sct@redhat.com)
Tue, 10 Nov 1998 12:42:17 GMT


Hi,

On Mon, 9 Nov 1998 22:54:26 GMT, David <david@kalifornia.com> said:

> http://www.sysinternals.com/comport.htm
> I was recently questioned regarding select()/poll() and harangued about
> their inefficiencies.

The 2.1 kernels support completion ports. :)

There is a new fcntl() option supported in 2.1.

fcntl(fd, F_SETSIG, signum)

lets you specify which signal to be delivered when SIGIO is raised on a
given file descriptor. If you have set the fd for non-blocking async
IO, then the given signal will be raised instead of SIGIO. If you use
the signum of a posix.4 realtime signal, then the signal will be queued
and will include the number of the file descriptor. In other words, the
signal handler you install for that signal will automatically be called
for every IO completion and will be told which fd is now available for
IO.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/