|
Pthreads Examples |
The hands-on session introduces you to algorithms involving Numerical, Non-Numerical, Matrix Computations. You have to write simple Pthread programs t . In order to make your programs more portable, you will be using the POSIX Threads API. |
To download codes, |
List of Pthreads Examples |
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.
Example 3 :
Compute the Value of PI function by Numerical Integration using Pthreads.
Example 4 :
Vector-Vector Multiplication using block striped partitioning (uniform data distribution) Example 5 :
Infinity norm of the Matrix using block striped partitioning
- Row Wise distribution. Example
6 : Infinity norm of the Matrix using block striped partitioning
- Column Wise distribution. Example
7 :
Matrix-Vector Multiplication using self scheduling algorithm
Example 8
: Matrix-Matrix Multiplication using self scheduling algorithm Example 9
: Matrix-Matrix Multiplication using block checkerboard partitioning
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). |