I would like to be able to load multiple copies of a shared library into the same address space. I want them to not share any global variables, and I want the two copies to be unaware that the other has been loaded.
The use-case is parallel execution of a thread-unsafe library.
How can I do this
- on Linux?
- on OS X?
- on Windows?
- on *BSD?
- on other Unix-like systems?