| kenter13 (19) | |||
|
Hello In my software, i get the id of a thread when i create it, with
then in threadRun i am checking the ID of the active thread with activeThreadID=(unsigned int)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. Thanks | |||
|
Last edited on
|
|||
| kbw (5374) | |
| Can you write a minimal program that reproduces the problem? | |
|
|
|
| Cubbi (1572) | |
| What are the types of the variables involved? (in particular, is "thread" an array of unsigned int or pthread_t? | |
|
|
|
| kenter13 (19) | |||
yeah sure
hope this helps. | |||
|
Last edited on
|
|||