900 views
0 votes
0 votes
Consider the following statements

S1:Disk is considered as the maximum size of virtual memory.

S2:Long term scheduler controls the degree of multiprogramming

S3:Strict Alternation guarantees mutual exclusion and progress.

Which of the above statements are correct?

I think only S2 is correct.S1 is incorrect because maximum size of the virtual memory is determined by the size of the Memory Address Register inside CPU’s MMU and not disk size.That is where logical address is stored.

 

Please let me know what is correct.

1 Answer

0 votes
0 votes

Virtual Memory is the memory addressed by the CPU. So, obviously it is limited by the no. of "address lines" in the CPU or the size of the Memory Address Register (MAR). 

Ref: https://gateoverflow.in/64475/size-of-virtual-memory-mcqs-in-cs-williams

S1 is wrong. As is we don't have the addressing capability then there is not much use of having larger disk.

S2 is correct.

If u look at the definition of progress , quoted from Galvin , it says :

If no process is executing in its critical section and some processes wish to enter their critical sections, then only those processes that are not executing in their remainder sections can participate in deciding which will enter its critical section next, and this selection cannot be postponed indefinitely.

So, S3 is wrong as in this case we don't have progress.

Ref: https://gateoverflow.in/86676/progress-and-deadlock

Related questions

0 votes
0 votes
1 answer
2