OS TEST 2 Questions and Answers |
100% Pass
What requirements is memory management intended to satisfy? - Answer-1. Relocation - A process
that has been swapped out to a disk can be moved to a different memory location than the one it was in
previously.
2. Protection - Each process should be p...
A relative address is a particular example of logical address, in which the address is expressed as a
location relative to some known point, usually a value in a processor register. A physical address is an
actual location in main memory.
What is the difference between a page and a frame? - Answer✔✔-A page is a part of a process, while a
frame is a part of memory.
What is the difference between a page and a segment? - Answer✔✔-Segmentation is visible to the
programmer and is provided as a convenience for organizing programs and data, while paging is invisible
to the programmer.
What is the difference between simple paging and virtual memory paging? - Answer✔✔-In contrast to
simple paging, not all pages of a process have to be in main memory for the process to run. Pages may
be read in as needed. Also, in virtual memory paging, reading a page into main memory may require
writing a page out to disk.
Explain thrashing. - Answer✔✔-Thrashing is when the system spends most of its time swapping pieces of
a process rather than executing instructions. To overcome this, the OS essentially guesses which pieces
are least likely to be used in the near future, based on recent history, and will swap those out of main
memory.
Why is the principle of locality crucial to the use of virtual memory? - Answer✔✔-The principle of
locality states that program and data references within a process tend to cluster. This validates the
assumption that only a few pieces of a process are needed over a short period of time. This also means
that it should be possible to make intelligent guesses about which pieces of a process will be needed in
Page 3/26
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller EmillyCharlotte. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.