Machine-translated by Google. Questions are authored in English.
Top

Memory Management Questions and Answers

Answer: D

Correct answer: no matter which algorithm is used, it will always occur

Every contiguous allocation scheme leaves gaps as processes of different sizes come and go, so the placement strategy affects how much external fragmentation occurs but cannot prevent it. Only non-contiguous allocation removes the problem.

Please log in or register to report this question.

105.

A memory buffer used to accommodate a speed differential is called:

Answer: B

Correct answer: cache

A cache sits between two levels working at different speeds - processor and memory, or memory and disk - and holds recently used items so the faster side need not wait for the slower one.

Please log in or register to report this question.

106.

Which among the following page replacement algorithms suffers from Belady’s anomaly?

Answer: A

Correct answer: FIFO

Belady's anomaly is the counter-intuitive result that giving a process more frames can increase the number of page faults, and FIFO is the standard example. LRU and the optimal algorithm are stack algorithms, and stack algorithms cannot suffer it.

Please log in or register to report this question.

109.

The disadvantage of moving all process to one end of memory and all holes to the other direction, producing one large hole of available memory is :

Answer: A

Correct answer: the cost incurred

Compaction works, but every byte of every process must be copied, and nothing else can run while it happens. That expense is its drawback.

Please log in or register to report this question.

Answer: B

Correct answer: addresses are bound at execution time

Compaction moves running processes to consolidate the free space, which means a process must be able to change its physical location while it is loaded. That is possible only where addresses are bound at execution time, through a relocation register or a page table that the operating system can simply update. Where binding happens at compile time or load time, a process’s addresses are fixed once and for all, and moving it would leave every reference pointing at the wrong place. The purpose of compaction is to cure external fragmentation, gathering scattered holes into one usable block. Its cost is heavy: every process must be copied, and the system can do nothing else meanwhile, so it is used sparingly. Under paging, compaction is unnecessary rather than required - the second option inverts the relation. Paging removes external fragmentation by definition, since any free frame serves for any page and physical contiguity is never needed. The technique survives in garbage-collected runtimes, which compact the heap for the same reason.

Please log in or register to report this question.

Loading…
Tags: Memory Management Questions and Answers || Memory Management MCQ Questions and Answers || Memory Management GK Questions and Answers || Memory Management GK MCQ Questions || Memory Management Multiple Choice Questions and Answers || Memory Management GK || GK on Memory Management || Computer Awareness Questions and Answers || Computer Awareness MCQ Questions and Answers || Computer Awareness GK Questions and Answers || GK on Computer Awareness