edited by
10,548 views
43 votes
43 votes

Indicate all the false statements from the statements given below:

  1. The amount of virtual memory available is limited by the availability of the secondary memory
  2. Any implementation of a critical section requires the use of an indivisible machine- instruction ,such as test-and-set.
  3. The use of monitors ensure that no dead-locks will be caused .
  4. The LRU page-replacement policy may cause thrashing for some type of programs.
  5. The best fit techniques for memory allocation ensures that memory will never be fragmented.
edited by

4 Answers

Best answer
36 votes
36 votes
  1. True.
  2. This is false. Example:- Peterson's solution is a purely software-based solution without the use of hardware.https://en.wikipedia.org/wiki/Peterson's_algorithm
  3. False. Reference: https://en.wikipedia.org/wiki/Monitor_(synchronization)
  4. True. This will happen if the page getting replaced is immediately referred to in the next cycle.
  5. False. Memory can get fragmented with the best fit.
edited by
14 votes
14 votes

before answering some points to know:-

  • Monitor is one of the ways to achieve Process synchronization. Monitor is supported by programming languages to achieve mutual exclusion between processes.
  • Peterson's solution is the purely software-based solution without the use of hardware.
     
  • if u consider the sequence like 12341234......... assume no of frames is 3 then here every page results page fault in LRU It leads to a lot of page movements so it causes thrashing
  • now go and see selected answer 
5 votes
5 votes
A is true as amount of virtual memory is limited by length of MAR and available secondary storage.

D is false as best fit technique causes internal fragmentation.

Not sure about B and C.
1 votes
1 votes

a) True.Link

b)False

c)

d)In any replacement policy thrashing could happen, but it mainly causes in time sharing system

thrashing

e) False. It minimize fragmentation onlyLink

Answer:

Related questions

36 votes
36 votes
4 answers
1
Kathleen asked Sep 12, 2014
12,396 views
The total size of address space in a virtual memory system is limited by:the length of MARthe available secondary storagethe available main memoryall of the abovenone of ...