We use embedded perl from C++. In our application there is currently only single instance of perl interpreter. Currently in our application when multiple computations requests come, there is a global lock for perl interpreter. once the computation is done lock is released and then another threads starts computation.

Idea is to have multiple instances of perl interpreter so that multiple computation requests can go in parallel.