Re: Fwd: Re: gnome_show_url() hangs in threaded programs [pawsa theochem kth se]



One more remark, it seems that using libgthread reverse the child and
parent in the switch : here are the messages when linked with libpthread
mythread, i=0
ATFORK: prepare_parent
ATFORK: resume_parent
ATFORK: resume_child
Child is here
Parent, waiting for child 11471
Main thread waits for the thread to join.
mythread, i=1
mythread, i=2
mythread, i=3
mythread, i=4

and with libgthread :
mythread, i=0
Parent, waiting for child 11482
Child is here

[hangs]

and same with _exit replacing exit :
mythread, i=0
Parent, waiting for child 11494
Child is here
Main thread waits for the thread to join.
mythread, i=1
mythread, i=2
mythread, i=3
mythread, i=4

Bye
Manu




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]