In a machine using 16 bit addresses and page size is 512 addresses, what's the maximum size for a process that executes?

StackOverflow https://stackoverflow.com/questions/16270220

문제

Since its 16 bit addresses and page size of 512 addresses, I think that makes the page offset 9 bits (512 is 29) and the number of pages is 216 - 29 = 27. What is the maximum size for a process that executes on this machine without the use of page demanding? In a process of size 4,535 words, what is the total memory that must be allocated to the program and how much fragmentation is there? Any suggestions? Thank you.

도움이 되었습니까?

해결책

The maximum size of the process 2^16, or 65,536 words.

For the process size of 4535, the memory needed be 4608 (512 * 9) with fragmentation of 73 (4608 - 4535).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top