/************************************************************** File: main.cc Description: A program that implements a divide and conquer function computing the sum of an array. Author: Dana Vrajitoru Organization: IUSB, Computer and Information Sciences Date: September 2020 ***************************************************************/ #include #include #include #include using namespace std; #include "div_conquer.h" int main() { int nthreads; pthread_t *threads; srand(time(NULL)); Init_data(nthreads); threads = new pthread_t[nthreads]; Create_threads(threads, nthreads); Synchronise(threads, nthreads); return 0; }