Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Weird Red Hat Linux thread id help...

  • 09-10-2009 03:18PM
    #1
    Closed Accounts Posts: 260 ✭✭


    Hi,

    Question here - i've written a multithreaded program and ran it on solaris 10 and on red hat linux
    when i do a pstack - the solaris reports normal enough thread ids:
    lwp# 1 / thread# 1

    But the red hat linux guy produces this weird thread id sequence:
    Thread 47974942004672

    anyone know exactly why RHL outputs this - and what it is?

    Thanks a lot

    N


    Solaris:
    lwp# 1 / thread# 1
    ff2cab38 lwp_cond_wait (35b40, 35b28, 0, 0)
    fe9c1e44 __1cHMonitorEwait6Mil_i_ (35ad0, 365e0, 371a0, fefde000, 365e0, 35b00) + 4bc
    feed57c0 __1cHThreadsKdestroy_vm6F_i_ (365e0, 35ad0, ff032160, fefde000, 0, 9400) + ac
    fecb13c8 jni_DestroyJavaVM (365e0, 83e8, ff032fa8, ff032fa0, 2, ff032fa4) + 1a4
    00012298 main (0, 34901, ff02b1e8, 1d8, 0, 1) + 11d0
    000110b0 _start (0, 0, 0, 0, 0, 0) + 108


    Red Hat Linux:
    Thread 1 (Thread 47974942004672 (LWP 27394)):
    #0 0x0000003494807655 in pthread_join () from /lib64/libpthread.so.0
    #1 0x00000000400058fc in ContinueInNewThread ()
    #2 0x0000000040001ee9 in main ()
    #0 0x0000003494807655 in pthread_join () from /lib64/libpthread.so.0


Advertisement