Write a Multithreaded parallel programs in Pthread package to solve Laplace's Equation over a two dimensional n*n grid using Gauss-Seidel and Red-Black relaxation methods,respectively.
Assume the grid is initialized to zeroes and its external boundary points along the four edges are initialized to 10.0 , 5.0 , 10.0 and 5.0.
Assume the iteration stops when the differences between the iteration values are less than 0.01.
Assume the number of threads is p.For simplicity,you may assume p divides n evenly.
You may use any assignment approach.