February 18th, 2013, 02:14 PM
On a single-processor machine, I need to measure the time cost for two threads alternate switch using a mutex lock.
February 18th, 2013, 02:28 PM
And your question is...?
Originally Posted by homsky642
The answer may depend on the target processor and OS in question. In a desktop environment the attempt is probably doomed since a non-realtime scheduler is by no means deterministic, and besides your threads/process there will be much else going on besides.