Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2007 15:08:41 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        arch@freebsd.org
Subject:   Re: New "timeout" api, to replace callout 
Message-ID:  <19256.1196608121@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 02 Dec 2007 05:50:31 PST." <20071202055031.A8107@xorpc.icir.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20071202055031.A8107@xorpc.icir.org>, Luigi Rizzo writes:


>This is why i suggest having a 'scale' that can represent '1 tick'
>(and also don't depend on TIMEOUT_MSEC == 1000 and so on, but keep
>them opaque and require that the client code uses one of the supported
>scales).


Using a deadline timer based in the HPET, the timeout can be scheduled
to any 1/14318181th of a second and there will be no concept of "a
tick" as we know it now.

Clients should say how often they want to be called, and they should
express it in terms of time, not based on some implementation detail
of a historical implementation of the scheduler.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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