I have inherited a large body of c++ code in a linux shared object that I suspect is not re-entrant.
Is there any way to run this code in multiple threads spawned from the same process, by ensuring each thread loads its own copy of the dll and maintains its own memory space?