3.3. List of Programs for Hands-on Session
Example 1 :
SimplePthreads program : Hello World
(Download source code ; pthreads_HelloWorld.c).
Example 2
: Sum of first n Natural Numbers.
(Download source code ; pthreads_Sumn.c).
Example 3 :
Compute the Value of PI function by Numerical Integration using Pthreads.
(Download source code ;
pthreads_pi.c).
Example 4 :
Vector-Vector Multiplication using block striped partitioning (uniform data distribution)
(Download source code ; pthreads_VectorVector_BlockStriped.c).
Example 5 :
Infinity norm of the Matrix using block striped partitioning
- Row Wise distribution.
(Download source code ; pthreads_InfinityNorm_Row.c).
Example
6 : Infinity norm of the Matrix using block striped partitioning
- Column Wise distribution.
(Download source code ; pthreads_InfinityNorm_Col.c).
Example
7 :
Matrix-Vector Multiplication using self scheduling algorithm
(Download source code ; pthreads_MatrixVector.c).
Example 8
: Matrix-Matrix Multiplication using self scheduling algorithm
(Download source code ; pthreads_MatrixMatrix.c
).
Example 9
: Matrix-Matrix Multiplication using block checkerboard partitioning
(Download source code ; pthreads_MatrixVector_CB.C).
Example
10
: Write a Pthreads program to solve a system of linear
equations AX=B using Parallel Jacobi Method. (Assignment).
Example
11 : Write a Pthreads program for solution of Poisson equation
with Dirichlet boundary condition by finite difference method.
(Assignment).
|