Filters
Question type

Study Flashcards

How does the second-chance algorithm for page replacement differ from the FIFO page replacement algorithm?

Correct Answer

verifed

verified

The second-chance algorithm is based on ...

View Answer

Anonymous memory of a process refers to


A) the pages not associated with the binary executable file of the process.
B) the pages associated with the binary executable file of the process.
C) the pages associated with the static data of the process.
D) the pages that cannot be swapped out of the physical memory.

Correct Answer

verifed

verified

A reaper starts reclaiming pages as soon as the number of free frames falls below the maximum threshold.

Correct Answer

verifed

verified

The Second-Chance algorithm


A) is same as FIFO algorithm if all pages in memory have been referenced at least once since the last page fault.
B) is same as FIFO algorithm if none of the pages in memory have been referenced since the last page fault.
C) is same as LRU algorithm if all pages in memory have been referenced at least once since the last page fault.
D) is same as LRU algorithm if none of the pages in memory have been referenced since the last page fault.

Correct Answer

verifed

verified

Optimal page replacement ____.


A) is the page-replacement algorithm most often implemented
B) is used mostly for comparison with other page-replacement schemes
C) can suffer from Belady's anomaly
D) requires that the system keep track of previously used pages

Correct Answer

verifed

verified

What is the benefit of using sparse addresses in virtual memory?

Correct Answer

verifed

verified

Virtual address spaces that include hole...

View Answer

Explain the sequence of events that happens when a page-fault occurs.

Correct Answer

verifed

verified

When the operating system cannot load th...

View Answer

Windows uses both a local and global page replacement policy.

Correct Answer

verifed

verified

Counting based page replacement algorithms are not commonly used, because


A) they only approximate LRU.
B) they are expensive to implement, even though they incur the least number of page faults.
C) they do not approximate OPT replacement very well and their implementation is expensive.
D) they do not approximate OPT replacement very well, even though they are easy to implement.

Correct Answer

verifed

verified

The dirty (modify) bit identifies


A) a page that has been corrupted.
B) a page that needs to be reloaded when accessed.
C) a page that is shared by multiple processes.
D) a page that has been modified since it was loaded.

Correct Answer

verifed

verified

The current best practice to avoid thrashing is to include enough physical memory.

Correct Answer

verifed

verified

The instruction that causes a page fault needs to be re-executed after the fault has been handled.

Correct Answer

verifed

verified

Solaris uses both a local and global page replacement policy.

Correct Answer

verifed

verified

Explain the usefulness of a modify bit.

Correct Answer

verifed

verified

A modify bit is associated with each pag...

View Answer

The most preferred method of swapping a process is


A) to swap using the file system.
B) to copy an entire file to swap space at process startup and then perform demand paging from the swap space.
C) to demand-page from the file system initially but to write the pages to swap space as they are replaced.
D) None of the above.

Correct Answer

verifed

verified

_____ is the algorithm implemented on most systems.


A) FIFO
B) Least frequently used
C) Most frequently used
D) LRU

Correct Answer

verifed

verified

Which of the following is true about choosing an appropriate page size?


A) Larger page size results in reducing total I/O.
B) Smaller page size reduces the number of page faults.
C) Larger page size reduces I/O time.
D) Larger page size results in less total allocated memory.

Correct Answer

verifed

verified

In demand paging,


A) a page loaded in memory may never be accessed.
B) all pages that a program will access during execution are loaded in memory in the beginning.
C) a page is loaded in memory only when it is needed during execution.
D) a page is loaded in memory just before it is needed.

Correct Answer

verifed

verified

Explain the concept behind prepaging.

Correct Answer

verifed

verified

Paging schemes, such as pure demand pagi...

View Answer

If an architecture has a move instruction with more than one word and at most one of the two operands may be an indirect memory reference, the minimum number of frames needed to run a process on this architecture is


A) 3
B) 4
C) 5
D) 6

Correct Answer

verifed

verified

Showing 21 - 40 of 54

Related Exams

Show Answer