What is the advantage of using dynamic loading? - correct answer ✔✔With dynamic loading a program
does not have to be stored, in its entirety, in main memory. This allows the system to obtain better
memory-space utilization. This also allows
unused routines to stay out of main memory so that memory can be used more effectively. For example,
code used to handle an obscure error would not always use up main memory
When does external fragmentation occur? - correct answer ✔✔As processes are loaded and removed
from memory, the free memory space is broken into
little pieces. External fragmentation exists when there is enough total memory space to satisfy a
request, but the available spaces are not contiguous; storage is fragmented into a large number of
small holes. Both the first-fit and best-fit strategies for memory allocation suffer from external
fragmentation.
Feedback: 8.3.3
Distinguish between internal and external fragmentation. - correct answer ✔✔Fragmentation occurs
when memory is allocated and returned to the system. As this occurs, free memory is broken up into
small chunks, often too small to be useful. External
fragmentation occurs when there is sufficient total free memory to satisfy a memory request, yet the
memory is
not contiguous, so it cannot be assigned. Some contiguous allocation schemes may assign a process
more memory than it actually requested (i.e. they may assign memory in fixed-block
sizes). Internal fragmentation occurs when a process is assigned more memory than it has requested and
the wasted memory fragment is internal to a process.
Explain the basic method for implementing paging. - correct answer ✔✔Physical memory is broken up
into fixed-sized blocks called frames while logical memory is broken up into equal-sized blocks called
pages. Whenever the CPU generates a logical address, the page number and offset into that page is
used, in conjunction with a page table, to map the request to a location in physical memory.
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 kirus27. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.