From: "Alexander N. Andreyev" <alexander@vvv.srcc.msu.su>
Newsgroups: comp.parallel.mpi
Subject: Re: Can I create threads in MPI
Date: Mon, 19 Apr 1999 14:37:46 +0400
Organization: SRCC Nonlinear Computation Lab InterNetNew site
Distribution: world
Message-Id: <7ff114$rvv$1@vvv.srcc.msu.su>
References: <924512434.64428@www3.netland.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:4943


MPI has nothing to do with threads. It is designed primarily for distributed
environments, therefore it deals with processes living in separate address
spaces. You can create threads (using Pthreads routines) within an MPI
process on your own risk. However, if you call MPI routines concurrently
from many threads, you are not guaranteed correct results (most current MPI
implementations are not thread safe). For more information, see chapter
"8.7. MPI and Threads" in MPI 2.0 specification. If you are interested in
thread-based programming on SMP systems, see OpenMP (www.openmp.org).

Best wishes,
--
Alexander N. Andreyev
Laboratory Of Parallel Information Technologies, SRCC, MSU
E-mail: alexander@dzeta.ru, http://alex.motor.ru, ICQ: #3523091
Parallel Computing: http://parallel.srcc.msu.su [russian language]


horacio <isabel@datasim.nl> wrote in message
news:924512434.64428@www3.netland.nl...
> HI everybody,
>
> I would like to know if it is possible to create and destroy threads in
MPI.
> I have seem there is possible to create processes with MPI2 dinamically
but
> I haven't found anything about threads,
>
> I would be very grateful to receive some information
>
> Regards,
>
> HOracio
>
>
>

