[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pthread_self() returns the same thread id.
From: |
Robert Williamson |
Subject: |
pthread_self() returns the same thread id. |
Date: |
Fri, 22 Aug 2003 14:10:14 -0500 |
I've noticed that in glibc 2.2.5 and glibc 2.3.2 pthread_self() seems to
always return the same number for thread ID. On i386 and s390x, with
linuxthreads and glibc2.2.5, it's always "1026". On ppc64, with NPTL 0.56
and glibc 2.3.2, I always get "1084390176" for 32bit and "549232068800" for
64bit. The testcase calling pthread_self() is using printf() to print it
as an unsigned long int, which is how pthread_t is defined. Has anyone
ever seen pthread_self() work correctly?
-Robbie
Robert V. Williamson <address@hidden>
Linux Test Project
IBM Linux Technology Center
Web: http://ltp.sourceforge.net
IRC: #ltp on freenode.irc.net
====================
"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former." -Albert Einstein
- pthread_self() returns the same thread id.,
Robert Williamson <=