Re: aio_connect ?

From: Garrett Wollman (wollman_at_khavrinen.lcs.mit.edu)
Date: 10/22/04

  • Next message: Mark Allman: "Re: Removing T/TCP and replacing it with something simpler"
    Date: Fri, 22 Oct 2004 14:07:48 -0400 (EDT)
    To: "Ronald F. Guilmette" <rfg@monkeys.com>
    
    

    <<On Fri, 22 Oct 2004 11:01:30 -0700, "Ronald F. Guilmette" <rfg@monkeys.com> said:

    > Signal numbers are typically represented as ints. Is there anything in
    > the kernel that prevents me from, say, calling kill(2) with a second
    > argument of, say, 0xdeadbeef, in other words any old random int value
    > that I might care to use?

    Yes. Signals are represented, in the kernel and in the API, as bits
    in fixed-size bitmaps.

    POSIX real-time signals, if we implemented them, would at least give
    you the opportunity to queue signals, with unique ancillary data
    attached to each instance. We have all the mechanism to do this in
    the user-kernel interface; it's just not implemented in the kernel.

    -GAWollman

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Mark Allman: "Re: Removing T/TCP and replacing it with something simpler"

    Relevant Pages

    • Re: how do threads work?
      ... >> A process cannot consider to switch task unless the flow of instructions ... >> kernel for a little help, in the form of regular timer signals. ... If you now ask, how does the kernel deliver signals, then we are no longer ...
      (comp.os.linux.development.system)
    • Re: Comments on the KSE option
      ... think M:N support in the kernel is a good idea. ... When the userland thread library issues a non-blocking ... When the userland thread scheduler switches threads ... It must also poll for blocked signals. ...
      (freebsd-current)
    • Re: Function: int recv (Socket, Buffer,Length, Flags) is returning with the error number 4
      ... That's a nice speculation by someone with little clue in kernel ... what it means from a kernel coding standpoint to "interrupt a system call". ... set to EINTR after the handler was run, there was no 'kernel state' to ... kernel can deliver signals at any time to a thread which is currently ...
      (comp.unix.programmer)
    • Re: allocating kernel threads from a pool
      ... kernel level threads to do IO, so that a user-level thread's IO calls ... you don't need signals at all. ... another thread writes a pointer to a command to another end of the ...
      (comp.unix.programmer)
    • Re: how do threads work?
      ... >> kernel for a little help, in the form of regular timer signals. ... it is signals. ... The kernel doesn't care if you switch stack causing such ... one CPU bound thrad and one I/O bound thread. ...
      (comp.os.linux.development.system)