100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
cop4610 exam 2 questions and correct answers graded A+ passed $9.99   Add to cart

Exam (elaborations)

cop4610 exam 2 questions and correct answers graded A+ passed

 4 views  0 purchase
  • Course
  • Cop4610
  • Institution
  • Cop4610

cop4610 exam 2 questions and correct answers graded A+ passed

Preview 1 out of 3  pages

  • September 1, 2024
  • 3
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Cop4610
  • Cop4610
avatar-seller
kirus27
cop4610 exam 2

T/F: In Xv6, each process's user stack is used for its system call handling. - correct answer ✔✔False, each
process's kernel stack is used for system call handling.



T/F: In Xv6, Trap frame is used to save the process's kernel machine state while performing context
switch. - correct answer ✔✔False, trap frame is used for passing user process data for kernel mode
handling of system calls.



T/F: For the first user process creation, the Xv6 kernel thread calls indium kernel routine to copy system
shell program (sh) to user-space. - correct answer ✔✔False, the first user process is in



it.



Xv6 kernel scheduler() routine executes as an extension to the current user process at timer interrupt. -
correct answer ✔✔False, the scheduler routine runs as its own thread, which is the first thread of xv6 at
boot time.



A 32-bit virtual address with 8KB page size has 2^19 page table entries in a single-level page table. -
correct answer ✔✔True, 32 bits per address with 2^13 addresses in a page calculates to 2^19 pages



Assume a system has a TLB hit ratio of 90%. TLB access takes 15ns, main memory access is 85ns, what is
the effective memory access time in ns with a single level page table for this system? - correct answer
✔✔108.5ns (.9*(15+85)+.1*(15+85+85))



Given the virtual (linear) address 0xAEF9 with a page size of 256 bytes, what is the page number? -
correct answer ✔✔0xAE, with 256bit pages the lowest magnitude two hex digits are the offset,
everything else is the page number.



The resulting value after evaluating the C expression ((0x801CB100 > 22) & (0x3FF)) - correct answer
✔✔0x200, The lowest magnitude 5 hex digits are right-shifted away, and 0x801 is left shifted another 2
times, leaving 0x200 & 0x3FFF, which equals 0x200.

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 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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79271 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
$9.99
  • (0)
  Add to cart