Virtual Memory Doubt

2009-11-02 Thread Shameem Ahamed
Hi, I know that When a process is created virtual address is allocated for the process, and the virtual addresses will be dynamically created upon request. How this virtual memory is allocated by kernel. Is it random ?. Can two process have same virtual memory addresses?. Regards, Shammi

Re: Virtual Memory Doubt

2009-11-02 Thread Mulyadi Santosa
I'll try to help On Mon, Nov 2, 2009 at 4:56 PM, Shameem Ahamed shameem.aha...@yahoo.com wrote: Hi, I know that When a process is created virtual address is allocated for the process, and the virtual addresses will be dynamically created upon request. I think it's not the virtual

Re: Virtual Memory Doubt

2009-11-02 Thread Joel Fernandes
Hi Mulyadi, I will just add a few more questions, don't mind me poking in a bit.. :) I think it's not the virtual address that is created, but the Virtual Memory Area. Then, addresses are assigned to this VMA. Whether the VMA contains page frame or not, that's another case. Do you mean VMA of

RE: Virtual Memory Doubt

2009-11-02 Thread Rajat Jain
Hi, Other than that, most likely for anonymous mapping, it is random. However, if you take a look very carefully, it would be somewhere between 0x0800 and slightly below bottom of stack (0xc00 minus something). Just curious why are the virtual addresses below 0x0800 left out?

Re: Virtual Memory Doubt

2009-11-02 Thread Mulyadi Santosa
Hi Joel... On Mon, Nov 2, 2009 at 10:34 PM, Joel Fernandes agnel.j...@gmail.com wrote: Hi Mulyadi, I will just add a few more questions, don't mind me poking in a bit.. :) Sure :) I think it's not the virtual address that is created, but the Virtual Memory Area. Then, addresses are assigned

Re: Virtual Memory Doubt

2009-11-02 Thread Mulyadi Santosa
On Tue, Nov 3, 2009 at 11:28 AM, Rajat Jain rajat.j...@infogain.com wrote: Hi, Other than that, most likely for anonymous mapping, it is random. However, if you take a look very carefully, it would be somewhere between 0x0800 and slightly below bottom of stack (0xc00 minus