Hello,
I am working on a project to measure the execution time of a program in multicore environment. I realized that TSC of one core is not synchronized with another core. How can I get an uniform and reliable TSC across 8 cores lets say.
Thanks
Hello,
I am working on a project to measure the execution time of a program in multicore environment. I realized that TSC of one core is not synchronized with another core. How can I get an uniform and reliable TSC across 8 cores lets say.
Thanks
There's no way. You can lock your thread to one core, however.
Basically, I tried to measure the latency of spinlock (from unlock -> acquire lock) in multicore environment. I have one thread with its affinity set on certain core to release the lock and the other thread with different affinity to acquire lock. So far the observed latency tend to fluctuate a lot.