When compiling a C program, there is an option to compile common code segment into a shared library.
But I don't quite understand how shared library works.
Does it exists in its own process or the caller's process?
When a process calls the shared library, does it load a new copy of the library or it uses the same one?
Can someone help me understand the concept?
But I don't quite understand how shared library works.
Does it exists in its own process or the caller's process?
When a process calls the shared library, does it load a new copy of the library or it uses the same one?
Can someone help me understand the concept?