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
1 Consider a logical address space of 128 pages of 1KB each, mapped onto a physical...
1 Consider a logical address space of 128 pages of 1KB each, mapped onto a physical memory of 64 page frames of 1KB each. a) How many bits are used for representing page numbers in the logical address? b) How many bits are there in the logical address? c) How many bits are used for representing page number in the physical address? d) How many bits are there in the physical address? 2. Assuming a 4-KB page size, what are...
Consider a process with a logical address space of 4 pages of 1024 bytes per page,...
Consider a process with a logical address space of 4 pages of 1024 bytes per page, mapped onto a physical memory of 64 frames. A. How many bits are there in the logical address? B. How many bits are there in the physical address? C. Given the following page table map: page 0 is mapped to frame 3, page 1 is mapped to frame 14, page 2 to frame 6, and page 3 to frame 33, what is the physical...
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...
Assume that the system is 32 bit and has a 2-level page table with a page...
Assume that the system is 32 bit and has a 2-level page table with a page size of 4KiB (p1=10bits, p2=10bits, offset=12bits). A program requires 16MiB in total. The program text segment uses 4MiB, the program data requires 2MiB, the program dynamically allocated 8MiB on the heap and stack utilises 2MiB. How many page tables are required for this process and explain why? What is the lookup process within the page tables for the physical address of the logical address...
Consider a virtual memory system that can address a total of 232 bytes. You have unlimited...
Consider a virtual memory system that can address a total of 232 bytes. You have unlimited hard drive space, but are limited to only 8 MB of physical memory. Assume that virtual and physical pages are each 4 KB in size. a. How many bits is the physical address? What is the maximum number of virtual pages in the system? How many physical pages are in the system? How many bits are the virtual and physical page numbers? Suppose that...
What are some advantages and disadvantages of selecting a page frame size of 1 MB? List...
What are some advantages and disadvantages of selecting a page frame size of 1 MB? List at least one (1) advantage and disadvantage. What are some advantages and disadvantages of selecting a page frame size of 100 bytes? List at least one (1) advantage and disadvantage. Answer the following questions about a program containing 512 bytes and an operating system using a page frame size of 200 bytes. How many page frames are necessary to store the entire program in...
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...
Consider the following string of page references: 7, 0, 1, 2, 0, 3, 0, 4, 2,...
Consider the following string of page references: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2. The main memory can only contain THREE frames. Show the frame allocation for: (60 points) FIFO (First-in-First-out) LRU (Least Recently Used) Clock Optimal (assume the page reference string continues with 1, 2, 0, 1, 7, 0, 1) List the total number of page faults and the miss rate for each policy. Count page faults only after all frames have been...
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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT