fbpx

Matlab Compiler generated DLLs are not thread safe!!! Even for C# or C++ shared libraries

(Last Updated On: December 4, 2012)

Matlab Compiler generated DLLs are not thread safe!!! Even for C# or C++ shared libraries

Loren,

What about thread safety? Can I call the functions in the shared library from multiple threads?
Thanks,

….

Tom,

You can call the libraries from multiple threads, but only one thread can be active in a library at any time. The generated libraries are protected by semaphores, which only allow one user thread into the generated library at any one time. Other user threads that try to call into the shared library will block (wait) until the shared library is “free”.

 

Creating C++ Shared Libraries and DLLs

So what are the alternatives? Find out what I plan to do by joining my free newsletter!!

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
Don't miss out!
Get my TRADE LIKE A BOSS 2 PDF Books

You will received instantly the download links.

Invalid email address
Give it a try. You can unsubscribe at any time.

NOTE!

Check NEW site on stock forex and ETF analysis and automation

Scroll to Top