Re: allocation of memory to a program
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 15:41:09 -0700 (PDT)
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
.
- References:
- allocation of memory to a program
- From: mohi
- Re: allocation of memory to a program
- From: David Schwartz
- Re: allocation of memory to a program
- From: mohi
- allocation of memory to a program
- Prev by Date: Re: Newbie: advice on general driver design
- Next by Date: Re: physical memory allocated to a program
- Previous by thread: Re: allocation of memory to a program
- Next by thread: Re: allocation of memory to a program
- Index(es):
Relevant Pages
|