PTHREADS
POSIX Threads for Multiprocessing {#pthreads-posix-threads-for-multiprocessing align="center"}
PTHREADS is a directory of C++ programs which illustrate the use of the POSIX thread libraries for parallel programming.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
PTHREADS is available in a C version and a C++ version.
MPI, C programs which illustrate the use of the MPI parallel programming interface for distributed memory systems.
OPENMP, C programs which illustrate the use of the OpenMP application program interface for carrying out parallel computatioins in a shared memory environment.
- David Butenhof,
Programming with POSIX Threads,
Addison Wesley, 1997,
ISBN: 0201633922,
LC: QA76.76.T55.B88. - Barbara Chapman, Gabriele Jost, Ruud vanderPas, David Kuck,
Using OpenMP: Portable Shared Memory Parallel Processing,
MIT Press, 2007,
ISBN13: 978-0262533027,
LC: QA76.642.C49. - Bradford Nichols, Dick Buttlar, Jacqueline Proulx Farrell,
Pthreads Programming: A POSIX Standard for Better Multiprocessing,
O'Reilly, 1996,
ISBN: 1-56592-115-1.
DOT_PRODUCT is an extensive example which shows how the dot product of two vectors could be computed.
- dot_product.cpp, the program.
- dot_product_output.txt, the output file.
You can go up one level to the C++ source codes.
Last revised on 19 July 2008.