Question

Assuming a 2-KB page size, what are the page numbers and offsets for the following address...

Assuming a 2-KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers):

  1. 12546
  2. 758
  3. 25983
  4. 4582
  5. 1254

Homework Answers

Answer #1

First we understand how to calculate the Page Number and Offsets for the given address references :-

  1. page number = A / page_size. this is the page number within the process address space. e.g. address in the process, A = 10,000. page size = 4k. ...
  2. offset = A (mod) page_size. this is the distance from the beginning of the page. e.g. address in the process, A = 10,000. page size = 4k.

Here we took the page size 2 KB

since, 1 KB =1024 Bytes

So, 2 KB = 1024*2 = 2048 Bytes

Page Number :-

12546 / 2048 = 6

758 / 2048 = 0

25983 / 2048 = 12

4582 / 2048 = 2

1254 / 2048 = 0

Offset :-

NOTE :- Here % represents mod, not percentage sign

12546 % 2048 = 258

758 % 2048 = 758

25983 % 2048 = 1407

4582 % 2048 = 486

1254 % 2048 = 1254

Hope u get your answer !!!!!!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What was the size of your amplified DNA sampple? a.) 3.0 kb b.) 0.5 kb c.)...
What was the size of your amplified DNA sampple? a.) 3.0 kb b.) 0.5 kb c.) 1.0 kb d.) 1.5 kb Compare your fragments with the ladder to determine their size. The DNA Ladder in Lane 1 has fragments of different sizes, in units of kilo-base pairs (kb): Therefore, you should see eight bands in Lane 1. Their sizes are: 6 kb 5 kb 4 kb 3 kb 2 kb 1.5 kb 1.0 kb 0.5 kb Material to Load Lane...
In a 4- to 5-page paper, address the following: Using the 5 I’s of marketing, analyze...
In a 4- to 5-page paper, address the following: Using the 5 I’s of marketing, analyze the health care service provided by the organization in the scenario. Inconsistency: Is there consistency in the quality of care? Inseparability: When providing the service, do providers demonstrate biases toward or against patients and their families (i.e., racial biases, age biases, gender biases, etc.)? Intangibility: What are the intangible characteristics of providers (i.e., demeanor, posture, etc.)? How do providers behave toward patients? Interaction with...
In a one-page paper address the following: Suppose Congress votes to decrease corporate income tax rates....
In a one-page paper address the following: Suppose Congress votes to decrease corporate income tax rates. Use the AD/AS model to analyze the likely impact of the tax cuts on the macroeconomy. Use graphs and analysis to support your reasoning. What exactly causes AD and/or AS to shift? What happens to GDP and the aggregate price level? Why? Please reference material used.
(2marks) Consider the following 12-bit numbers below. Assuming they are unsigned, add them to produce a...
(2marks) Consider the following 12-bit numbers below. Assuming they are unsigned, add them to produce a 12-bit sum the same way a computer would. Also, state whether or not an error results using the same method a computer would. 110010001001 011010001101 Repeat the addition and error detection from the previous question, but this time assuming that the numbers are in two’s complement representation. Also: without converting to decimal, but simply by intuition, i.e. looking at the three numbers and applying...
Address the following with NIKE Inc. 1. What are the three major objectives of operational budgeting?...
Address the following with NIKE Inc. 1. What are the three major objectives of operational budgeting? 2. Briefly describe the type of human behavior problems that might arise if budget goals are set too tightly or too loosely. Please remember that references are required for your initial post. This week please be sure to reference Chapter 23 of your eText and use APA style.
Assuming a project having the following cash flows: Year 0 1 2 3 4 Cash flow...
Assuming a project having the following cash flows: Year 0 1 2 3 4 Cash flow -6000 500 -500 5000 3000 What is the NPV of this project if the discount rate is 5%? Report the answer with 2 numbers after decimal place What is the IRR of this project? Report the answer in percentage term with 2 numbers after decimal place such as 12.43%. What discount rate will make NPV of this project equals to -494.258 Report the answer...
onsider the following page reference string: 3, 8, 2, 9, 8, 2, 3, 9, 2, 8...
onsider the following page reference string: 3, 8, 2, 9, 8, 2, 3, 9, 2, 8 Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms? Show your working. (10-marks) First in First out Least Recently Used Optimal Replacement Calculate the no. of page faults for each algorithm. (3-marks) Which algorithm performs best for the given reference string? (2-marks)
Reflection Paper: Construct a 2 page, double spaced paper detailing what you have learned from the...
Reflection Paper: Construct a 2 page, double spaced paper detailing what you have learned from the course Essentials of Psychology.Explain in detail, use examples, and references (course book Essentials of Psychology 6e By Douglas Bernstein).
Consider the following page reference string: 7, 2, 3, 1, 2, 5, 3, 7, 6, 7...
Consider the following page reference string: 7, 2, 3, 1, 2, 5, 3, 7, 6, 7 Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms? Show your working. First in First out Least Recently Used Optimal Replacement Calculate the no. of page faults for each algorithm. Which algorithm performs best for the given reference string?
Address one of the following questions: 1. What is Socratic Wisdom/Skepticism? Is it valuable? 2. Was...
Address one of the following questions: 1. What is Socratic Wisdom/Skepticism? Is it valuable? 2. Was Socrates guilty? Should Socrates have been executed? 3. Is one better off outside of the cave? Why or why not? 200 word minimum.