Question: Could anyone help me solve this problem using C++? Thanks a lot Assignment 4 Description find a way to measure the efficiency of applying multi-threading
Could anyone help me solve this problem using C++? Thanks a lot Assignment 4 Description find a way to measure the efficiency of applying multi-threading using 1, 2, 4 and 8 threads. use the project parallelizingForLoop.cp to complete the tasks of Assignment 4. following is the project parallelizingForLoop.cp
#include
int main() {
omp_set_num_threads(4);
#pragma omp parallel for for (int i = 0; i < 8;i++) { int id = omp_get_thread_num(); printf("iteration # = %d ---- thread # %d ",i,id); }
getchar(); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
