1 2 /*--------------------------------------------------------------+ 3 | This is a brief example on how to use pthreads and openmp -- | 4 | it is intended to be a brief introduction to the syntax of | 5 | thread creation, and in the case of OpenMP, synchronization. | 6 | The man pages on pthreads (etc.) is a good place to start to | 7 | learn about pthread synchronization. | 8 | | 9 | Contents: | 10 | Makefile Builds the project | 11 | | 12 | hello-pthreads.c "Hello World" in C/Pthreads | 13 | | 14 | hello-omp.c "Hello World" in C/OpenMP | 15 | | 16 | increment.c Increments a single shared | 17 | counter using several different | 18 | OpenMP synchronization options | 19 | | 20 | addmatrix.c Implements parallel matrix add | 21 | printmatrix.c using OpenMP. | 22 | matrixmain.c | 23 | | 24 | This code was developed and tested at UW-Madison on a Sun | 25 | T2000 sever running Solaris 11 (chianti.cs.wisc.edu). It can | 26 | be built with the Sun Studio 10/11 compilers. | 27 +--------------------------------------------------------------*/