[coyotos-dev] sleep capability
Jonathan S. Shapiro
shap at eros-os.com
Tue Jan 23 08:21:42 CST 2007
Yes:
uint64_t counter; // on a shared page
for(;;)
counter++;
Other thread reads counter. Every bit as good as rdtsc.
On Tue, 2007-01-23 at 14:01 +0100, Pierre THIERRY wrote:
> Scribit Jonathan S. Shapiro dies 22/01/2007 hora 10:19:
> > 2. Running a second thread on a concurrent CPU is good enough to get a
> > very high accuracy clock.
>
> Do you have at hand some references about the methods used to get this
> accuracy? Is it really doable without any use of a CPU cycle or time
> counter?
>
> Curiously,
> Pierre
> _______________________________________________
> coyotos-dev mailing list
> coyotos-dev at smtp.coyotos.org
> http://www.coyotos.org/mailman/listinfo/coyotos-dev
--
Jonathan S. Shapiro, Ph.D.
Managing Director
The EROS Group, LLC
+1 443 927 1719 x5100
More information about the coyotos-dev
mailing list