Parallel and Distributed Computing CSE4001 Lab - 4
Parallel and Distributed Computing CSE4001 Lab - 4
Lab – 4
Sasank Chunduri
17BCE0523
Code:
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include<malloc.h>
free (a);
free (b);
}
Output:
Code:
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#define CHUNKSIZE 10
#define N 100
Output:
4C. Write a C program with OpenMP to implement section work sharing.
Code:
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#define N 50
Output: