Assuming a 2-KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers):
First we understand how to calculate the Page Number and Offsets for the given address references :-
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 !!!!!!
Get Answers For Free
Most questions answered within 1 hours.