Hello everyone,
I read the description of dwAllocationGranularity from,
1. http://msdn2.microsoft.com/en-us/library/ms724958.aspx
2. http://msdn2.microsoft.com/en-us/lib...87(VS.85).aspx
and tested on my system it is 65535.
But from the above description, I do not quite understand what does it mean. Does it mean that when memory manager deals with real memory allocation, it will always allocate 65535 bytes at a time, and divide into small chunks to upper level API (for example, when we new[256], it will allocate 256 bytes from the 65535 allocated raw bytes to application)?
Another question is, what benefit will we get if we know this parameter? For example, how do we allocate memory will utilize the system at most to achieve best performance?
thanks in advance,
George