This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

串行运算的多核任务分配



您好!

如下的运算:

for (i=0;i<16;i++)

{

   a[i] = 0;

}

for (i=1;i<16;i++)

{

   a[i] = a[i-1]-1;

}

对于第二个循环中的运算,因为每一次运算都是基于前一次运算的结果,所以是不是不适合分配到多个核呢?