lkml.org 
[lkml]   [2005]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ktimers subsystem 2.6.14-rc2-kt5


On Mon, 17 Oct 2005, Tim Bird wrote:

> >
> >
> > It's rather simple:
> > - "timer API" vs "timeout API": I got absolutely no acknowlegement that
> > this might be a little confusing and in consequence "process timer" may be
> > a better name.
>
> I agree with Thomas on this one. Maybe "timer" and "timeout" are too
> close, but I think they are the most descriptive names.
> - timeout is something used for a timeout. Timeouts only actually
> expire infrequently, so they have a host of attributes associated
> with that characteristic.
> - timer is something used to time something. They almost always
> expire as part of their normal behaviour. In the ktimer code they
> have a host of attributes related to this characteristic.
>
> Thomas answered the suggestion to use "process timer" as an alternative
> name, but I didn't see a reply after that from Roman (I may have missed it.)
>

I can add to this. After this was brought up, I did a little
non-scientific survey. I walked around and asked various engineers here at
my customer's site, what it meant to them if I had two types of timer
APIs, one for "timers" and one for "timeouts". All 100% of 8 people that
I asked (not a lot, but still), had no confusion with what they meant. I
asked them to explain what these names mean to them, and every one said
basically, timeouts are for situations that are for things that lasted too
long, and timers and for things where they want to be notified of an
event that takes place at some time.

They all agreed with me that timeouts were for exceptions and not expected
to be triggered, and timers were the other way around and should always be
triggered.

Not only that, I also asked if these timers would make sense if we called
them "kernel" timers and "process" timers. These names confused them
because they use both timers in their kernel modules.

That convinced me enough to think that Thomas' naming convention is not
confusing.

-- Steve

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

\
 
 \ /
  Last update: 2005-10-17 19:29    [W:0.325 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site