then in threadRun i am checking the ID of the active thread with
activeThreadID=(unsignedint)pthread_self()
if i use only one thread, on Redhat 5.8 these two IDs are same. But now i passed to Redhat 6.3 and these IDs are different.
what can be the reason? and how can i get the same ids on Redhat 6.3?
can the kernel version cause this problem? on Redhat 6.3, kernel version is 2.6.32-279.9.1.el6.x86_64 whereas on 5.8 the version is 2.6.18-308.8.1.el5.