Hi there,
Recently I make a program running with both the support of Mpi and Pthread. The
program is run on a Linux SMP kernel. If "mpirun -np 1 pi", the program can run well
and with the correct result, but if "mpirun -np 2 pi", some threads that were created
by the program in a mpi process(task) must got to be in "Zombie". What's the problem?
As follows is the main frame of the program:
****************************
pi(void *arg) {
...//computing PI
}
main()
{
MPI_Init();
pthread_create(th1, pi, NULL, 0);
pthread_create(th2, pi ,NULL, 1);
...
pthread_join(th1...);
pthread_join(th2...);
MPI_Reduce(...);
}
Many thanks!
wyong
�{�H���E!������i��0�*Ⱨ�����ݙ����욘h��?N�'���r��zǧv�칻�&ޖ)��ɩ�����ݢj/�����ǝ