« Return to Thread: multithreading prblm / 64bits linux

multithreading prblm / 64bits linux

by moloko :: Rate this Message:

Reply to Author | View in Thread

Hi ,

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 ?

I've found that boost::shared_ptr template is thread safe by default, but, the Makefile that comes with this software disables thread safety.
I'm using already compiled boost libraries, does someone knows if BOOST_DISABLE_THREADS is "on" in those libs ?

Another question which is maybe connected with the first one :
I'm compiling QL with
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
x86_64
on Linux RedHat enterprise Release 4 ( Nahan Update 6 )

If I do not want to be in bebug mode and to have a faster executing code, should I set the following option when executing ./configure ? : CXXFLAGS=' -O2 -m64'

If I omit -m64 could it lead to a core dump when executing the above-described test

Merci !

Pierre

 « Return to Thread: multithreading prblm / 64bits linux