samedi 28 mars 2015

Parallel execution of processes



const int n =5;
int count = 0;
void test()
{
int i;
for i = 1 to n
count+=2;
}
main()
{
Par begin
test();
test();
test();
Par end
}


What can be the maximum and minimum value of count after completion of the program?




Aucun commentaire:

Enregistrer un commentaire