[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pthread_self() returns the same thread id.
From: |
Robert Williamson |
Subject: |
Re: pthread_self() returns the same thread id. |
Date: |
Fri, 22 Aug 2003 14:37:13 -0500 |
Nevermind....I misunderstood what pthread_self() was actually returning.
-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
----- Forwarded by Robert Williamson/Austin/IBM on 08/22/2003 02:37 PM
-----
Robert Williamson
To: address@hidden
08/22/2003 02:10 cc:
PM From: Robert
Williamson/Austin/address@hidden
Subject: pthread_self() returns
the same thread id.
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