Almost all basic mathematical and statistical functions are fully re-entrant,
and therefore thread safe. The main exception are the random number generators,
which are definitely not thread safe, as they maintain their state internally.
They should be protected by a mutex or something similar.
Work is underway on a multithreaded version of Ox, after which we'll have some
more explicit guidelines.
Jurgen
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
oxoxoxox 4th OxMetrics user conference 2006
oxoxoxox Cass Business School, London
oxoxoxox 14-15 September 2006
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
Dr Jurgen A Doornik
Nuffield College, Oxford OX1 1NF, UK
tel. UK: +44-1865-278610 fax +44-1865-278621
http://www.doornik.com
http://www.oxmetrics.net
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
John Zedlewski wrote:
> Hi, does anybody know the "rules" for multithreading in a C dll called
> from Ox? Are the Ox exported library functions threadsafe? What about
> calling random number generators from multiple threads?
> Thanks,
> --JRZ
>
>
|