Messages in this thread | | | Date | Sun, 12 Sep 1999 23:23:57 -0400 (EDT) | From | Chuck Lever <> | Subject | Re: POSIX aio vs completion ports |
| |
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/
| |