696 views
0 votes
0 votes
Consider the following program:

Const int n= 20
int Count= 0
Void GATE( )
{
int i; for(i= 1 to n)
Count= Count + 1;
}
Main ( )
{
Par begin
GATE( );
GATE( );
GATE( );
Par end
}
What is the minimum and maximum possible value of count after the completion of the program?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
ajayraho asked Oct 23, 2022
911 views
What is the significance of infinite loop that is written in every example of process synchronisation? What would happen if there wasn't any infinite loop?
3 votes
3 votes
0 answers
2
iarnav asked Sep 28, 2018
772 views
Any implementation of a critical section requires the use of an indivisible machine- instruction ,such as test-and-set?Is the above statement True or False?