Solving a problem using multithreading You have to write two
Solving a problem using multi-threading
You have to write two versions of program, one using PThread, one using OpenMP.
 The program shall take two array as input. Each input array contains a list of integers. The number of the thread used should also depend on your input.
The job of the program is to output a sorted list of unique integers that are common between
 the two array into a file.
Solution
import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
public class mnClass {
 public static void main(String abh[]) {
 String ogr[] = { \"a\", \"b\", \"b\", \"c\" };
 String bhyu[] = { \"x\", \"b\", \"b\", \"y\" };
 List origList = new ArrayList(Arrays.asList(ogr));
 List actLsst = Arrays.asList(bhyu);
 origList.retainAll(actLsst);
 System.out.println(origList);
 }
 }

