I have one basic doubt.
I have a process which uses a shared library. If I am allocating some memory in the library
then which address space it is. (Library or Process)
In my opinion it is the process address space because once the library is attached it is all in process address space.
Please correct me if I am wrong.
Thanks
Arpit
A library doesn’t have its own address space. It is mapped into and executed within some process. So you are right. Memory allocations of a shared library are done inside the process which is using it.