v4vijayakumar wrote:
:: On 7 Maj, 10:53, v4vijayakumar <
[email protected]>
:: wrote:
::
::: When free store got exhausted, request for more memory issues an
::: error. Why this behavior is chosen instead of, creating new virtual
::: address space? What is the rationale behind this decision?
::
:: This is not a C++ question since C++ can run on computers that does
:: not have virtual memory, and this is not specific to C++ so you
:: should probably have asked this in a newsgroup for your OS instead.
::
:
: ...
:
: Prefixed [OT] to the subject, but now I couldn't see it.
:
: I accept it is our responsibility to free resources we use. There are
: limits in every resources we use, but this does not justify the
: decision. I think (?), creating new address space, when there is no
: more memory is quite possible. My question is _why_ this is not the
: behavior (of many, or, almost all, or, all languages)?
We have a particular problem right now, that for 32-bit systems the amount
of physical memory is about the same as the virtual address space. That
makes virtual memory much less useful than it "used to" be.
You will also soon see that as a reason to move on to a 64 bit OS, where the
virtual address space is agai much large than physical memory.
Bo Persson