Re: allocation of memory to a program



On Mar 28, 2:54 am, mohi <mohangupt...@xxxxxxxxx> wrote:

sir ,
mean that presently i was reading about physical memory allocators and
wanted to know ,as the size entry of the program( the size of the
program in directory entry) includes the size of the code of the
program and not that of the dynamic memory which that program may
require(as i think) ,so how does the kernel or the allocater decides
what block of memory should be actually allocated to the program(which
will also include the dynamic memory which may be required by the
program beside the memory required for its code.
mohan

If you mean how is physical memory allocated as virtual memory is
used, the answer is basically "as virtual memory is used". If an
address in a process' virtual memory space references something that
is not resident, the kernel allocates a page and maps it when the
process accesses it.

DS
.



Relevant Pages

  • Re: [Lit.] Buffer overruns
    ... > floating point support or a memory expansion option. ... had virtual memory support grafted on. ... > where the modified instruction was fetched from. ... vis-a-vis the official coporate strategic operating system TSS/360. ...
    (sci.crypt)
  • Re: scf /scannow & INFO in Event Viewer
    ... I know all about restore to ... pagefile to a low end of 2, ... The memory used by the user's ... Virtual Memory: Total paging file size for all drives is 2046MB ...
    (microsoft.public.windowsxp.general)
  • Re: virtual memory
    ... you can have virtual memory ... that software transparent swapping requires virtual memory. ... (since swapping it into physical memory is all or nothing). ...
    (comp.arch.embedded)
  • Re: Do I need a Page File?
    ... Intel designes the virtual memory. ... >> unlimited amounts of RAM, we wouldn't even NEED a paging file. ...
    (microsoft.public.windowsxp.general)
  • Re: Is There a Way to Remove a Module From Memory"
    ... "mapped" into virtual memory. ... to unload them from your virtual memory if they're no longer being accessed. ... I think "loaded on demand" is here referring to a machine code module, ... The default in Visual Basic is to compile code on demand. ...
    (microsoft.public.vb.general.discussion)