int main(void) ...{ // initialize the array for(int i=0; i<100; i++) array[i] = i +1;
register int result =0;
SICA_SYSCR &=~0x20; // Enable and activate core B for(int i=0; i<50; i++) result += array[i]; // calculate first 50 elements resultA = result; progress++; // this subtask has been completed while(progress <2); // wait for the other subtask TRACE("The answer is: %d ", resultA + resultB);