L
lazy
wat will happen to a std string function like strcmp etc when the size
of the string is greater than page size of the OS?
A bigger question is how will they be even stored? (if at all they can
be stored)
My guess is that this is not an issue as I assume we can malloc like
1MB(>page size), so when we try to access it,
both the pages are brought to memory. Does malloc by default tries to
allocate in the same page? If so, how will it deal with fragmentation?
Pardon me if the question doesnt make sense.
of the string is greater than page size of the OS?
A bigger question is how will they be even stored? (if at all they can
be stored)
My guess is that this is not an issue as I assume we can malloc like
1MB(>page size), so when we try to access it,
both the pages are brought to memory. Does malloc by default tries to
allocate in the same page? If so, how will it deal with fragmentation?
Pardon me if the question doesnt make sense.