1. Is it necessary to have the page size be a power of 2? Could a page of size, say, 4000 bytes be implemented in theory? If so, would it be practical?
2. A virtual memory has a page size of 1024 words, eight virtual pages, and four physical page frames. The page table is as follows:
Virtual page
|
Page frame
|
0
|
3
|
1
|
1
|
2
|
not in main memory
|
3
|
not in main memory
|
4
|
2
|
5
|
not in main memory
|
6
|
0
|
7
|
not in main memory
|
a. Make a list of all virtual addresses that will cause page faults.
b. What are the physical addresses for 0, 3728, 1023, 1024, 1025, 7800, and 4096?