Question

Operating Systems Name two differences between logical and physical addresses. Why are page sizes always powers...

Operating Systems

Name two differences between logical and physical addresses.

Why are page sizes always powers of 2?

Consider a logical address space of 64 pages of 1,024 words each, mapped onto a physical memory of 32 frames.
a. How many bits are there in the logical address?
  b. How many bits are there in the physical address?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Logical address is the virtual address generated by CPU to access the data while the physical address is the actual address at while data resides in the memory. Logical address space is limited by the number of bits in the address space of the CPU while the physical address is limited by the size of available main memory.

Page size is always powers of 2 because base of the binary number is 2 and hence for any given number of bits n for the address space, the total possible number of address that can be generate is 2n and this is the reason that to utilize entire possible address space, page size is kept in powers of 2.

a. Size of logical address in terms of number of words = 64*1024 = 216 words

Hence number of bits for logical address = log2 (number of words) = log2 216 = 16 bits

b. Since size of frame = size of page = 1024 words

Size of physical memory = 32*1024 = 215 words

Number of bits for physical address = log2 215 = 15 bits

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
Operating Systems Name two differences between logical and physical addresses. Why are page sizes always powers...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT