DEV Community

Francisco Maria Calisto
Francisco Maria Calisto

Posted on

Efficiency of Multithreaded Loops

7

Greetings noble community,

I want to have the following loop:

for(i = 0; i < MAX; i++)
    A[i] = B[i] + C[i];

This will run in parallel on a shared-memory quad-core computer using threads. The two alternatives below are being considered for the code to be executed by these threads…

Top comments (0)