<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=067132715-23112006><FONT face=Arial
color=#0000ff size=2>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, </FONT></SPAN><SPAN class=067132715-23112006><FONT face=Arial
color=#0000ff size=2><A
href="http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/users_95.htm">http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/users_95.htm</A> says
that sending SIGKILL to a thread kills the entire process.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=067132715-23112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=067132715-23112006><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=067132715-23112006></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Ravi
ravi<BR><B>Sent:</B> Thursday, November 23, 2006 3:14 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [MPICH]
pthread_kill(thread,SIGSTOP) is killing the whole process instead of killing
the thread<BR></FONT><BR></DIV>
<DIV></DIV>hi all,<BR><BR> I am using mpich-1.2.4 over my
AIX cluster.<BR><BR>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.<BR><BR>I am trying to kill the thread of one of
the processes in my application like
this<BR><BR>pthread_kill(threadID,SIGSTOP); OR
pthread_kill(threadID,SIGKILL)<BR><BR>this is resulting in the destruction of
that whole process intern it is stopping my application. <BR><BR>My thread is
doing some receiving operation like
this<BR>MPI_Recv(.................);<BR><BR><BR>I want to kill the thread from
the main thread as soon as an event occurs in the mainthread.<BR><BR>Any help
??<BR><BR>Thanks and Regards<BR>Ravi.Thati<BR><BR>Our attempts may fail but we
should not fail to attempt.<BR></BLOCKQUOTE></BODY></HTML>