[MPICH] pthread_kill(thread,SIGSTOP) is killing the whole process instead of killing the thread
Rajeev Thakur
thakur at mcs.anl.gov
Thu Nov 23 09:30:17 CST 2006
If you call MPI functions from multiple threads, you will need a thread-safe
version of MPI. MPICH 1.2.4 is not thread-safe. MPICH2 1.0.4 is. Also,
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/users_
95.htm says that sending SIGKILL to a thread kills the entire process.
Rajeev
_____
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Ravi ravi
Sent: Thursday, November 23, 2006 3:14 AM
To: mpich-discuss at mcs.anl.gov
Subject: [MPICH] pthread_kill(thread,SIGSTOP) is killing the whole process
instead of killing the thread
hi all,
I am using mpich-1.2.4 over my AIX cluster.
My application uses threads in MPI programs. And I don't need a thread-safe
version of MPI here because we dont share any data to operate from threads.
I am trying to kill the thread of one of the processes in my application
like this
pthread_kill(threadID,SIGSTOP); OR pthread_kill(threadID,SIGKILL)
this is resulting in the destruction of that whole process intern it is
stopping my application.
My thread is doing some receiving operation like this
MPI_Recv(.................);
I want to kill the thread from the main thread as soon as an event occurs in
the mainthread.
Any help ??
Thanks and Regards
Ravi.Thati
Our attempts may fail but we should not fail to attempt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20061123/f80015f7/attachment.htm>
More information about the mpich-discuss
mailing list