On Thu, Mar 11, 2010 at 6:41 PM, Conoscenza Silente
<[email protected]> wrote:
> Hi All
> I would like to use Octave in my C++ code.
> Do you know if calling Octave scripts with feval FROM
> different threads might cause any issue to my application?
>

Most definitely, yes. Octave is not thread safe - some parts are
inherently global (symbol table, call stack) and hence will create
race conditions.
If you work on Linux or other OS supporting efficient process cloning,
fork() is the way to go. It can even be used in m-code, for instance
see "parcellfun" from the general package.


-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to