S
sam_cit
Hi Everyone,
I wanted to know as to how malloc() works, if my understanding is
correct, it is implementation specific of the vendor who provides the
library(alloc.h).
If so, is there any standard as to how it should be implemented?
If there is no space in the RAM, will malloc() return NULL or will it
allocate a memory in a new page using virtual memory and return the
address? If so, what if the operating system doesn't support Virtual
memory?
Please share your comments, if possible, some links as to how
malloc() works?
Thanks in advance!!!
I wanted to know as to how malloc() works, if my understanding is
correct, it is implementation specific of the vendor who provides the
library(alloc.h).
If so, is there any standard as to how it should be implemented?
If there is no space in the RAM, will malloc() return NULL or will it
allocate a memory in a new page using virtual memory and return the
address? If so, what if the operating system doesn't support Virtual
memory?
Please share your comments, if possible, some links as to how
malloc() works?
Thanks in advance!!!