Multiple answers: Select two answers that are *CORRECT* when…
Multiple answers: Select two answers that are *CORRECT* when the following program executes. You can reference pthread man page if you need. #include #include #include #define CORE 4#define MAX 8pthread_t thread;int mat_A, mat_B, sum;void* add(void* arg) { int i, j; int core = (int)arg; for (i = core * MAX / 4; i < (core + 1) * MAX / 4; i++) for (j = 0; j < MAX; j++) sum = mat_A + mat_B; return NULL;}int main() { int i, j, step = 0; for (i = 0; i < MAX; i++) for (j = 0; j < MAX; j++) { mat_A = rand() % 10; mat_B = rand() % 10; } for (i = 0; i < CORE; i++) { pthread_create(&thread, NULL, &add (void*)step); step++; } for (i = 0; i < CORE; i++) pthread_join(thread, NULL); return 0;}