Practice Questions for Computer System Structure | E C E 329, Assignments of Electrical and Electronics Engineering

Material Type: Assignment; Professor: Birchfield; Class: COMP SYS STRUCT; Subject: ELECTRICAL AND COMPUTER ENGINEERING; University: Clemson University; Term: Fall 2005;

Typology: Assignments

Pre 2010

Uploaded on 07/29/2009

koofers-user-fkb-1
koofers-user-fkb-1 🇺🇸

3

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 329 Chapter 9 Questions
1. (3 pts.) What is the difference between a logical and a physical address?
1. (3 pts.) What is the difference between segmentation and paging?
1. (3 pts.) What is the difference between a page and a frame?
1. (3 pts.) What is the difference between internal and external fragmentation?
1. (3 pts.) What is the difference between a logical and a physical address?
1. (3 pts.) Given memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that
order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212
KB, 417 KB, 112 KB, and 426 KB (in that order)?
First Fit Best Fit Worst Fit
1. (3 pts.) What would be the advantage and disadvantage of separating a program into two
parts: code and data using segmentation? What could be done/implemented to alleviate this
disadvantage?
1. (3 pts.) Why are page sizes always powers of two? (Yes, you get points for this question if
answered correctly.)
1. (3 pts.) Consider a logical-address space of eight pages of 1,024 words each, mapped onto a
physical memory of 32 frames.
a) How many bits are in the logical address?
b) How many bits are in the physical address?
1. (3 pts.) Consider a paging system with the page table stored in memory.
pf2

Partial preview of the text

Download Practice Questions for Computer System Structure | E C E 329 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 329 Chapter 9 Questions

  1. (3 pts.) What is the difference between a logical and a physical address?
  2. (3 pts.) What is the difference between segmentation and paging?
  3. (3 pts.) What is the difference between a page and a frame?
  4. (3 pts.) What is the difference between internal and external fragmentation?
  5. (3 pts.) What is the difference between a logical and a physical address?
  6. (3 pts.) Given memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in that order)? First Fit Best Fit Worst Fit
  7. (3 pts.) What would be the advantage and disadvantage of separating a program into two parts: code and data using segmentation? What could be done/implemented to alleviate this disadvantage?
  8. (3 pts.) Why are page sizes always powers of two? (Yes, you get points for this question if answered correctly.)
  9. (3 pts.) Consider a logical-address space of eight pages of 1,024 words each, mapped onto a physical memory of 32 frames. a) How many bits are in the logical address? b) How many bits are in the physical address?
  10. (3 pts.) Consider a paging system with the page table stored in memory.

ECE 329 Chapter 9 Questions a) If a memory reference takes 200 ns, how long does a paged memory reference take? b) If we add TLB’s (Translation Look-aside Buffer), and 75 percent of all page-table references are found in the TLB’s, what is the effective memory reference time? (If the entry is present in the TLB, finding that entry takes 1 ns.)

  1. (3 pts.) What is the effect of allowing two entries in a page table to point to the same page frame in memory?
  2. (3 pts.) Why are segmentation and paging sometimes combined in one scheme?
  3. (5 pts.) A segmented memory system has logical addresses of 12 bits and 8 different segments. Decode the logical addresses given using the following segment table: Segment Base Length Segment Base Length 0 0x110 0x10 1 0x030 0x 2 0x080 0x15 3 0x140 0x 4 0x000 0x26 5 0x150 0x7A 6 0x120 0x37 7 0x060 0x9F Logical Address 0x303 = Physical Address 0x ________________ Logical Address 0x808 = Physical Address 0x ________________