Asked
fragment OpenMP-programs:#include "omp.h"
#include
void main()
{
#pragma omp parallel
{
int r =
omp_get_thread_num();
printf
("%d\n", r);
}
}
That will be issued on the screen
as a result of this program?

  • Number (possibly repeated) from the range 0, 1,
    ..., N-1, where N - number of threads created
  • One number in the range 0, 1, ..., N-1, where N
    - number of threads created
  • The numbers 0, 1, ..., N-1, without repetitions,
    where N - number of threads created
Для просмотра статистики ответов нужно залогиниться.