[Scilab-Dev] Call SendScilabJob from multiple threads

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Mon Jul 29 08:47:27 CEST 2013


On 23/07/2013 12:19, ldindon wrote:
> Hi,
>
> I am using the call_scilap API to access the Scilab engine from C++. It
> works well and I did not have any problem until I was sending Scilab
> commands one after the other.
>
> But now I need to be able to execute scilab commands in parallel. For
> instance I would like to send small commands while a script that takes a lot
> of time to execute is running in the background.
>
> Unfortunately it looks like the Scilab engine does not handle this case and
> when I call SendScilabJob while a previous call is pending I get weird
> behaviours (crash, freeze, ...).
>
> Is there a way to do it ?
Scilab is not threadsafe. That means that call with Javasci or
Call_scilab should be serialized (one after the other).
If you want to go with parallel computing with Scilab, you should have a
look to the MPI branch but it is a quite different paradigm.

Sylvestre




More information about the dev mailing list