Linux-kernel mailing list archive 1999-37,: Re: POSIX aio vs completion ports

# Re: POSIX aio vs completion ports

Chuck Lever (cel@monkey.org)
Sun, 12 Sep 1999 23:23:57 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Bruce Werner: "Kernel 2.3.12 Error with display on Mach 64 implimentation"
- Previous message: Stuart Inglis: "RE: Upgraded from 2.2.5 (RH6) to 2.3.18---ATAPI CD-ROM freezesmachine while booting"

On Sun, 12 Sep 1999, Jamie Lokier wrote:
> Chuck Lever wrote:
> > there's no good way for the application (or library) to allocate a
> > specific RT signal, so there must be some form of "gentlemen's
> > agreement" between libraries and application as to which uses which
> > signal.
>
> My strategy: search for the first rt signal that's not got SIG_DFL as
> its handler.
>
> Imperfect I know but probably better than random() :)

you have to select a signal number and set up the signal handler in a
single system call. otherwise, you're racing with other threads that
could be doing this at the same time, right?

- Chuck Lever

    --
    corporate:	<chuckl@netscape.com>
    personal:	<chucklever@netscape.net> or <cel@monkey.org>

    The Linux Scalability project:
    	http://www.citi.umich.edu/projects/linux-scalability/

    -
    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/

- Next message: Bruce Werner: "Kernel 2.3.12 Error with display on Mach 64 implimentation"
- Previous message: Stuart Inglis: "RE: Upgraded from 2.2.5 (RH6) to 2.3.18---ATAPI CD-ROM freezesmachine while booting"