so while counting up seems to give the lwpid for the first few dozend threads...

2010/06/08 22:08:10.321419 [LWP:11001] ___2__________________ spawning [11020][SMTP Send]_________________
[New Thread 0xb71b8b70 (LWP 11020)]
2010/06/08 22:08:10.325241 [LWP:11001] serv_extnotify: processing notify queue
2010/06/08 22:08:10.325800 [LWP:11001] serv_extnotify: queue run completed
2010/06/08 22:08:10.326015 [LWP:11020] Created a new thread "SMTP Send" (0xb71b8b70).
2010/06/08 22:08:10.326125 [LWP:11020] [:5] SMTP client: processing outbound queue
2010/06/08 22:08:10.326378 [LWP:11020] [:5] SMTP client: queue run completed; 0 messages processed
2010/06/08 22:08:10.326427 [LWP:11020] Thread "SMTP Send" (0xb71b8b70) exited.
[Thread 0xb71b8b70 (LWP 11020) exited]
2010/06/08 22:08:11.000346 Garbage Collection for thread "SMTP Send" (0xb71b8b70).
2010/06/08 22:08:11.000447 Garbage Collection for thread "IGnet Network" (0xb72b9b70).
2010/06/08 22:09:03.000326 [LWP:10993] [:1] -- db checkpoint --
2010/06/08 22:09:11.000277 ___4__________________ spawning [11021][IGnet Network]_________________
[New Thread 0xb72b9b70 (LWP 11029)]

it suddenly changes...

fancily the hex numbers are acurate.

it seems as if

syscall(SYS_gettid);

gives the acurate results:

2010/06/08 22:38:07.130163 [LWP:11853] [LWPd:11854] Thread "SMTP Send" (0xb72b9b70) exited.
[Thread 0xb72b9b70 (LWP 11854) exited]

it seems to be linux only that way... solaris doesn't seem to have a similar LWP according to the opensoralis mailing list... probably the same accounts for the rest of the bsds...

so, only a linux feature...

Reply via email to