waiting to enter critical section?
right now i have one more thread, which in while(true) each 1s. calculate CPU usage during all execution.
I'm not sure it's the best solution.
BTW, is it ok, that CPU usage is 0% when i'm locking/unlocking mutex?
how that loop is calculating?
Стикер
how time is calculated?
http://www.philosophicalgeek.com/2009/01/03/determine-cpu-usage-of-current-process-c-and-c/
how are you separating your calculator used cpu time?
Обсуждают сегодня