You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma omp parallel for // حولوها كمنت عشان تشوفو التنفيذ في السريال عمال ازاي
for (int i = 0; i < 100000000; i++){
arr[i] = i;
//cout << "thread id: " << omp_get_thread_num() << endl; // للتوضيح فقط, لو رقم كل ثرد بيتغير يبقي كده انتو شغالين بارالل صح ولو ثالت عند 0 و دي رقم الثرد الاساسيه يبقي كده انتو شغالين سيريال
// just for show, if you find that the thread id is changing that measns you're running in parallel but of you're stuck at id = 0 that would mean that the main thread (which has id = zero) is running the entire program by itself hence, you running in serial.