Load multiple copies of a shared library

后端 未结 4 1737
栀梦
栀梦 2020-12-10 04:49

I am running Linux, and I would like to be able to make parallel function calls into a shared library (.so) which is unfortunately not threadsafe (I am guessing it has globa

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 05:08

    Instead of using threads, you can use multiple processes, each doing some of the work. This is very common on *nix, and is usually easier to code.

提交回复
热议问题