I have a new mac with two quad core processors. I was wondering how well it uses the eight cores.
If I have a for loop
for (i = 0; i < 16; i++)
{
x = i*i;
}
would it handle it as well as
for (i = 0; i < 9; i +=8)
{
x = i*i;
x[i+1] = (i+1)*(i+1);
x[i +2] = (i+2)*(i+2);
etc
}
thanks
If I have a for loop
for (i = 0; i < 16; i++)
{
x = i*i;
}
would it handle it as well as
for (i = 0; i < 9; i +=8)
{
x = i*i;
x[i+1] = (i+1)*(i+1);
x[i +2] = (i+2)*(i+2);
etc
}
thanks