[lsb-discuss] LSB conf call notes for 2008-04-30
Wichmann, Mats D
mats.d.wichmann at intel.com
Thu May 1 13:32:30 PDT 2008
> I have no clue as to why it appropriate to have a "gettid" manpage yet
> not have the wrapper. All this results in is the awkward use of
> syscall(SYSgetti,...) rather than gettid(...). Either its "private"
> (hence, no manpage) or its public (should have a wrapper). I don't
> see any reason for being half-way.
Here's the canonical answer from the glibc point of view:
"No program must ever assume that a thread runs on the same kernel
thread all the time."
http://sources.redhat.com/bugzilla/show_bug.cgi?id=6399
... which does not seem to me to be how Java uses this, it uses
it for a one-time query. Whatever, it's apparently not going into
glibc.
More information about the lsb-discuss
mailing list