Virtual memory management?
Hello, my problem is as follows:
A computer has 4 pages of physical memory with 100 locations each. Virtual memory consists of 12 pages and is mapped to blocks 50, …, 61 of the hard disk.
I'm now supposed to convert certain virtual memory addresses into physical addresses. Can someone show me how to convert the virtual address from, for example, 322?
Thanks
You have 4 pages of physical memory.
You have 12 virtual pages, which means that 3 pages each must map to the same memory block (how this is done depends on the mapping strategy).
Since you obviously don't calculate in binary (otherwise the size of the memory block would be quite unfavorable and the address strange), I would say that the following mapping should work:
For address 322 this would be the following:
But depending on how the task is to be understood (this is not really clear), something else may of course be required.
Hey, I actually forgot to include part of the assignment. It was in the PDF on the next page.🙃
In any case, the tile should first be filled at 0, then 1, … until it is full, and then refilled using the last recently used method.
LG
Dann nimmst du für “Physikalische Seite” oben einfach entsprechend die Seite gemäß der Aufgabenstellung.