Re: select() for delay.

From: Arnd Bergmann (arnd_at_arndb.de)
Date: 10/30/05

  • Next message: Steinar H. Gunderson: "Re: BIND hangs with 2.6.14"
    To: madhu.subbaiah@wipro.com
    Date:	Sun, 30 Oct 2005 20:06:15 +0100
    
    

    On Maandag 24 Oktober 2005 12:55, madhu.subbaiah@wipro.com wrote:
     
    > This is regarding select() system call.
    >
    > Linux select() man page mentions " Some code calls select with all
    > three sets empty, n zero, and a non-null timeout as a fairly portable
    > way to sleep with subsecond precision".

    When you make a change to a system call, you should always check
    if the change makes sense for the 32 bit emulation path as well.

    In this case, you should definitely do the same thing to both
    sys_select and compat_sys_select if this is found worthwhile.
     
    > This patch improves the sys_select() execution when used for delay.

    Please describe what aspect of the syscall is improved. Is this only
    speeding up the execution for the delay case while slowing down
    the normal case, or do the actual semantics improve?

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


  • Next message: Steinar H. Gunderson: "Re: BIND hangs with 2.6.14"

    Relevant Pages

    • Re: To reduce the speed of execution of a program VBAEXCEL
      ... I have made a program which circulates in a range of cells. ... I would like to reduce the speed of execution. ... assuming that you're using a loop to do your task (my ... Dim delay As Long ...
      (comp.lang.basic.visual.misc)
    • Re: Javascript can load a script dynamically?
      ... From memory, Firefox needs a delay of about 10ms, after the script has finished loading, to be able to *reliably* call any function. ... It needs the current execution context to exit before it will update the script blocks and make any code in the .js file accessible. ...
      (comp.lang.javascript)
    • FAQ Topic - How do I make a 10 second delay?
      ... FAQ Topic - How do I make a 10 second delay? ... There is no built-in way to pause execution in javascript such ... To call the function « Snork», ...
      (comp.lang.javascript)
    • FAQ Topic - How do I make a 10 second delay?
      ... FAQ Topic - How do I make a 10 second delay? ... Script execution is not stopped, and adding `` Snufkin'' after the ... Other hosts have different wait functions, ...
      (comp.lang.javascript)
    • Re: GFP_ATOMIC vs GFP_KERNEL in netfilter module
      ... hooks, since they are run in interrupt context (when the packet is ... > being called after the delay. ... in the fact that your allocations are atomic versus not. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)