1,006 views
0 votes
0 votes
Consider the following segment:

int count = 0;

void tally( )

{

for(int i=1;i<=5;i++)

count=count+1;

}

main()

{

parbegin

tally();

tally();

parend

}

 Note: Assume the count = count + 1; will execute in ‘3’ different instructions. I. Load Ri, m[count] II. INC Ri III. Store m[count], Ri Pre­emption can occur while executing the above instructions. After completion of both functions of tally( ), The minimum final values of count is.....?

1 Answer

Related questions

0 votes
0 votes
0 answers
1
2 votes
2 votes
0 answers
2
0 votes
0 votes
1 answer
4
shefali1 asked Jan 31, 2017
208 views
An upper layer packet is split into 20 frames each of which has 80 percent chance of arriving undamaged. No error control is done by data link layer. The number of times ...