#Include - Iostream
#Include - Iostream
#include <vector>
#include <thread>
#include <chrono>
#include <fstream>
#include <cstdlib>
int THREAD_THRESHOLD=std::thread::hardware_concurrency();
int num;
while (file >> num) {
numbers.push_back(num);
}
file.close();
return numbers;
}
int i = 0, j = 0, k = left;
while (i < n1 && j < n2) {
if (L[i] <= R[j]) arr[k++] = L[i++];
else arr[k++] = R[j++];
}
if (depth > 0) {
int main() {
}
for(int i=10;i<=100000;i*=10){
auto start=chrono::high_resolution_clock::now();
mergeSortParallel(arr,0,i,THREAD_THRESHOLD);
auto stop=chrono::high_resolution_clock::now();
auto
interval=chrono::duration_cast<chrono::microseconds>(stop-
start);
int ans=interval.count();
cout<<ans<<endl;
}
return 0;
}