100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CMSC411 Final Questions And Answers Latest Update $15.99   Add to cart

Exam (elaborations)

CMSC411 Final Questions And Answers Latest Update

 1 view  0 purchase

CMSC411 Final Questions And Answers Latest Update

Preview 2 out of 9  pages

  • October 23, 2024
  • 9
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (5)
avatar-seller
Schoolflix
Solution 2024/2025
Pepper

CMSC411 Final Questions And Answers Latest
Update

virtual memory ANS✔✔ a way to organize physical memory so that
processes believe they have a lot of memory while effectively managing
physical constraints



Page table ANS✔✔ table that keeps track of virtual addresses in order to go
from virtual to physical mappings, usually contains virtual address



simple page table ANS✔✔ one entry per page, entry contains physical page
number/frame number or if the page is on the disk (rather than RAM) or
otherwise invalid, and metadata



multi-level page tables ANS✔✔ Uses bits from virtual address to index
tables, Avoids using the table entries for unused virtual memory addresses,
We save space because we do not need to allocate an entry for all the
pages



Virtual address breakdown ANS✔✔ virtual address contains virtual page
number (to locate in page table) and page offset (to locate in physical
memory) and can contain other stuff



Translation Look-aside Buffer (TLB) ANS✔✔ Once a virtual page is mapped
into a physical page, it'll

likely stay there for quite some time, so we use the TLB to memorize these
mappings

, Solution 2024/2025
Pepper



Handle TLB miss with hardware ANS✔✔ TLB stalls until hardware register
that keeps page table location finds and reads it



Handle TLB miss with software ANS✔✔ Raise exception on TLB miss, use
Software TLB miss handler in OS or retry instruction



Fully Associative TLB ANS✔✔ Any mapping can be kept in any TLB entry, so
check all entries on each access. Larger working set -> TLB needs to
remember more mappings



set associative TLB ANS✔✔ Mapping can go into a specific part of the TLB so
Use lowest bits of Virtual Page Number to determine where it can go



Direct TLB ANS✔✔ each mapping goes to one TLB entry



Process change/context switch ANS✔✔ after changing active program the
TLB is no longer valid, so we need to add process ID so we know what
process each TLB entry belongs to



Cache ANS✔✔ Small more local memory for fast access because access to
DRAM takes a while



Temporal Locality ANS✔✔ if data is accessed, it will likely be accessed again
soon after



Spacial Locality ANS✔✔ data spatially close to data recently accessed will
also likely be accessed soon

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 Schoolflix. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83662 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.99
  • (0)
  Add to cart