Re: FW: [RFC] A more general timeout specification

From: Christopher Friesen (cfriesen_at_nortel.com)
Date: 08/31/05

  • Next message: Andrea Arcangeli: "Re: KLive: Linux Kernel Live Usage Monitor"
    Date:	Wed, 31 Aug 2005 15:20:03 -0600
    To: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
    
    

    Perez-Gonzalez, Inaky wrote:
    > In this structure,
    > the user specifies:
    > whether the time is absolute, or relative to 'now'.

    > Timeout_sleep has a return argument, endtime, which is also in
    > 'struct timeout' format. If the input time was relative, then
    > it is converted to absolute and returned through this argument.

    Wouldn't it make more sense for the endtime to be returned in the same
    format (relative/absolute) as the original timer was specified? That
    way an application can set a new timer for "timeout + SLEEPTIME" and on
    average it will be reasonably accurate.

    In the proposed method, for endtime to be useful the app needs to check
    the current time, compare with the endtime, and figure out the delta.
    If you're going to force the app to do all that work anyway, the app may
    as well use absolute times.

    Chris
    -
    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: Andrea Arcangeli: "Re: KLive: Linux Kernel Live Usage Monitor"

    Relevant Pages

    • Re: help wanted
      ... I see that Henk Salemink has sent you source code. ... INVALID ABSOLUTE ELEMENT - MAYBE OBSOLETE FORMAT - TRY REMAP which ... For your purposes, since I expect you don't care about reentrancy, you can probably simplify things considerably, but you will have to do some research as to exactly what these ERs expected so you can set up the code into the right place and the right way. ...
      (comp.sys.unisys)
    • Re: help wanted
      ... I see that Henk Salemink has sent you source code. ... INVALID ABSOLUTE ELEMENT - MAYBE OBSOLETE FORMAT - TRY REMAP which ... The second problem is the obsolete ERs. ...
      (comp.sys.unisys)
    • Re: Checking for a valid date
      ... >> I'm not sure whether IsDate uses Exceptions as the primary ... >> without throwing an exception: ... If a given format is expected. ... > You would have to rely on an absolute exact documentation of Date.Parse's ...
      (microsoft.public.dotnet.languages.vb)
    • Re: FW: [RFC] A more general timeout specification
      ... >>it is converted to absolute and returned through this argument. ... > format (relative/absolute) as the original timer was specified? ... The returned timeout struct has a bit used to mark the value as absolute. ...
      (Linux-Kernel)
    • Re: Conditional formating
      ... Have you tried removing the dollar sign from the row reference to make it ... so that the appropriate row number is used when you apply the format to the ... Cell of course is your reference... ... to keep it absolute throughout the row. ...
      (microsoft.public.excel.misc)