This commit is contained in:
Gundolf Haase 2025-12-11 15:57:16 +01:00
commit 186320f76f
4 changed files with 7 additions and 7 deletions

View file

@ -58,8 +58,8 @@ void task_2() {
void task_3() {
printf("\n\n-------------- Task 3 --------------\n\n");
int threads = 4;
omp_set_num_threads(threads);
//int threads = 4;
//omp_set_num_threads(threads);
cout << omp_get_max_threads() << " threads have been started." << endl;
// #####################################
@ -207,9 +207,9 @@ void task_4() {
}
int main() {
task_2();
//task_2();
task_3();
task_4();
//task_4();
return 0;
}
}