Re: allocation of memory to a program



On Mar 27, 1:07 pm, mohi <mohangupt...@xxxxxxxxx> wrote:
hello everyone
can anyone please tell we how the os kernel determines the size of
memory to be allocated
to a program while it is sheduled, here i mean how it determines the
size of the heap and the stack memory to be allocated to it .
all help is appreciated
moahn

Your question doesn't really make sense. First, it's not clear whether
it's about physical memory or virtual memory. Second, it implies that
memory is allocated when a process is scheduled, which is not the
case. Memory is allocated when the process requests it.

What are you trying to ask? It's not clear.

DS
.