Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 1997 11:09:33 -0600
From:      "Justin T. Gibbs" <gibbs@plutotech.com>
To:        Nate Williams <nate@mt.sri.com>
Cc:        "Justin T. Gibbs" <gibbs@plutotech.com>, current@freebsd.org
Subject:   Re: new timeout routines 
Message-ID:  <199709241709.LAA24417@pluto.plutotech.com>
In-Reply-To: Your message of "Wed, 24 Sep 1997 10:56:45 MDT." <199709241656.KAA12715@rocky.mt.sri.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> In your scheme, you need
>> to allocate an additional hash table
>
>So far so good.
>
>> and add a set of links to each
>> callout entry so it can live both in the callwheel and in the hash
>> table.
>
>Huh?  Why?  The hash table contains a direct pointer to the entry which
>is the same as the cookie.  Then, it's the exact same code used with
>the cookie solution, but w/out requiring changes to the code and
>drivers.

So you assume that regardless of what pointers the client gives you,
even if they give you the same pair twice without an intervening 
expiration or untimeout call, that there will be no collisions in
the hash table?

>No traversing the hash chain (assuming a perfect hash, which should be
>pretty easy), and things are still constant time.
>
>Seems pretty obvious/simple to me.

It's not obvious to me.  Please explain.

>Nate
>

--
Justin T. Gibbs
===========================================
  FreeBSD: Turning PCs into workstations
===========================================





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709241709.LAA24417>