# os82 - b 110 c 2500 d 3400 e 4112 Answer 8.23 Logical...

This preview shows pages 1–4. Sign up to view the full content.

s Question 8.17 Assuming a 1KB page size , what are the page numbers and offsets for the following address references (provided as decimal number) a) 2375 b) 19366 c) 30000 d) 256 e) 16385 Answer 8.17 If size logical address space is 2 m and a page size is 2 n addressing units(bytes or word) , then the high order m – n represent Page number , and the low n order bits designate offset . Page Number Page offset p d m—n n As 1 kb = 1024 .so n = 1024 a) 2375 = 2375 % 1024 = 1 and rem = 1351 So Page Number = 1 Page offset = 1351 1 1351

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
b) 19366 = 19366 % 1024 = 4 and rem = 2982 So Page Number = 4 Page offset = 2982 4 2982 c) 30000 = 30000 % 1024 = 4 and rem = 13616 So Page Number = 4 Page offset = 13616 4 13616 d) 256 = not possible as m < n I .e m-n < 0 e) 16385 = 16385 % 1024 = 4 and rem = 1 So Page Number = 4 Page offset = 13616 4 1 Question 8.23 Consider the following segment table :- Segment Base Length 0 219 600 1 2300 14 2 90 100 3 1327 580
4 1952 96 What are the physical addresses for the following logical addresses ? a) 0,430

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.