issue with clock_gettime
Some times the clock_gettime(with CLOCK_REALTIME) call gives in non-chronological order in my ppc(Linux 22.214.171.124). Did any one come across such issues earlier? Shall i know the reason behind it?
It may be related to whether you system is SMP; from the manual page
Hope this helps some.
The scenario is as follows,
I am having few threads with same dynamic library, which uses clock_gettime(with CLOCK_REALTIME) to get the current time stamp. In one of the thread will always shows the time with a 1 hour difference. The issue occurs some times on ppc processor restart, otherwise there is no jump in time. My system is not SMP.
rt = t.tv_sec;
strftime(tmp, sizeof(tmp), "%Y/%m/%d %H:%M:%S", &t1);
[Wed Sep 26 16:47:45 2012] thread 1
[Wed Sep 26 17:47:45 2012] thread 2
[Wed Sep 26 16:47:45 2012] thread 3
[Wed Sep 26 16:47:45 2012] thread 4
Is there any hope of light.
|All times are GMT -5. The time now is 01:30 PM.|