[coyotos-dev] sleep capability

Pierre THIERRY nowhere.man at levallois.eu.org
Tue Jan 23 08:57:56 CST 2007


Scribit Jonathan S. Shapiro dies 23/01/2007 hora 09:21:
> 	uint64_t counter;	// on a shared page
> 	for(;;)
> 		counter++;
> 
> Other thread reads counter. Every bit as good as rdtsc.

Won't that be made inaccurate by the priority of the process, if it is
too low, and many other processes with higher priority run in parallel?

Astonishingly,
Pierre
-- 
nowhere.man at levallois.eu.org
OpenPGP 0xD9D50D8A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.coyotos.org/pipermail/coyotos-dev/attachments/20070123/8c8e0162/attachment.bin 


More information about the coyotos-dev mailing list