the memory allocated by malloc could occupy several pages and these pages are not necessarily next to each other, is this correct?
Is the memory allocated by malloc not necessarily physically continous?
1.4k Views Asked by PeopleMoutainPeopleSea At
3
That is correct.
Physically contiguous memory only matters for DMA and you don't care because you are not in kernel space.
It will be contiguous in virtual address space.