[ILUG] pthread_self() on Whitebox linux

Bryan O'Donoghue typedef at eircom.net
Wed Dec 15 19:41:39 GMT 2004


> It's most likely NPTL. With redhat from 9 upwards, each thread doesn't 
> show up as a new process.

Yeah I suspected as much.

> Not sure why pthread_self returns a negative number.. maybe it's 
> returning an unsigned int?

Hrmm I'm *printfing to "%ld" for a pthread_t type... can't find the 
exact specification but, I'd suspect typedef pthread_t long exists 
somewhere.

Funnily, I'd almost expect getpid() to return duff information as 
opposed to pthread_self() under NPTL.

_wierd_.




More information about the ILUG mailing list