[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is memory allocation boundery in Dindows?



> >If you want to allocate a block of memory in 1MB boundary, how do you do
> >it? Thanks.
>
> I would allocate 2MB, take the 1MB of it which suits me, and deallocate
the rest.
> (Note: I am not familiar with windows or linux).

Note that this would have to be a physically contiguous chunk of 2MB.
There's no guarantee that an OS will be willing to give you such a large
region of physically contiguous memory.  In fact, I suspect that most OSes
will never be willing to do this.

Monish Shah
CTO - Indra Networks
http://www.indranetworks.com

> Dimiter
> --------------------------------------------------------------------
> Dimiter Popoff
> http://transgalactic.freeyellow.com
>