« Return to Thread: multithreading prblm / 64bits linux

Re: multithreading prblm / 64bits linux

by Luigi Ballabio :: Rate this Message:

Reply to Author | View in Thread

On Tue, 2008-04-29 at 07:29 -0700, moloko wrote:
> I've got some issues with java using Quantlib via JNI:
> during heaving load test we launch simultaneously several JNI function which
> are crashing on
>
>  Is Rate discount_factor = marketcurve->discount(maturity,true);
>
> does anyone knows if boost::shared_ptr<YieldTermStructure> marketcurve( is
> thread safe ?

Most probably not. It depends on the kind of curve you're using. If it's
a bootstrapped one, it's likely that your threads are trying to
bootstrap the same object at the same time. Of course, chaos ensues.

Luigi


--

Matz's Law:
A conclusion is the place where you got tired of thinking.



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
QuantLib-users@...
https://lists.sourceforge.net/lists/listinfo/quantlib-users

 « Return to Thread: multithreading prblm / 64bits linux

LightInTheBox - Buy quality products at wholesale price