Subj : Re: Hazard Pointers w/o memory barrier. To : comp.programming.threads From : Joe Seigh Date : Fri Apr 22 2005 10:25 am On Fri, 22 Apr 2005 06:48:08 -0400, Joe Seigh wrote: >> > You can scan processors for quiescent states instead of threads. It will > work just as good. > > Using NtQuerySystemInformation() to get SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION > or SYSTEM_INTERRUPT_INFORMATION for system times or interrupts on a per > processor basis. It may be obsoleted though. The replacement for the > system times is GetSystemTimes() which is aggregated and useless. I have > to find where the server 2003 stuff moved to and see what functions are in > there. > > It looks like Linux has timing broken out per cpu in /proc/stat at least on my system. Man pages aren't updated for this. OS X I can't tell yet. OS X is pretty messy with a Mach microkernel, BSD kernel, legacy crap from OS 9. Looks like the gibbage in, gibbage out school of design. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .