While I was studying about shared library I read a statement
Although the code of a shared library is shared among multiple processes, its variables are not. Each process that uses the library has its own copies of the global and static variables that are defined within the library.
I just have few doubts.
- Whether code part of each process are in separate address space?
- Whether shared-library code part are in some some global(unique) address space.
I am just a starter so please help me understand.
Thanks!
See Question&Answers more detail:os