[mpich-discuss] terminating a thread which executes a blocking call
toufik hadjazi
h_toufik7 at hotmail.fr
Thu Jun 21 08:33:37 CDT 2012
Hi all, I am using mpich2 on windows 7, working on a client server model, and at some point in my program, i created 2 threads , one calls MPI_Comm_accept and the other calls MPI_Recv, what i need is, the moment one of them passes the blocking call, it terminates the other one. but when i tryied this, i noticed that the function terminateThread doesn't work appearantly (neither MPI_Recv nor MPI_Comm_accept was canceled!). and when i took a look at mpi-report i found that threads on blocking calls can't interact with signals (the way i understood it might be incorrect).Is it impossible to kill a thread on a blocking call? if so, is there others ways to do the work i need? PS : i'm using win32 threads and i've initialized my application with MPI_THREADS_MULTIPLE. Best regards, Toufik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120621/89320ee7/attachment.html>
More information about the mpich-discuss
mailing list