Could someone please advise me on how to implement fork() in a parallel processing (multiplying) of a 2d array....I have been at this for far too long..
here is my code
for (int i = 0; i < rowCol[0]; i++ ) result[i] = (float*)malloc ( rowCol[1] * sizeof(float) );
int i = 0;
int j = 0;
int k = 0;
for(i = 0; i < rowCol[0]; i++)
{
for( j = 0; j <rowCol[3]; j++)
{
result[i][j] = 0;
for( k = 0; k < rowCol[1]; k++)
{
result[i][j] += (matrix1[i][k] * matrix2[k][j]);
}
}
}
Any step in the right direction would be greatly appreciated
Thanks