On 04/08/2013 22:31, Dmitry Popoinikov wrote:
Hi, David
Thank you for response. Yes I 'translate' multithreading C application to Poly/ML (and it crashes in these callbacks) and I thought I do something wrong.
Let me ask you one more question? Whether you recommend to use Poly/ML for programs working in a mode 7/24? (Whether it is possible to be sure of that the memory expense never will exceed --maxheap?)
Hi Dmitry, I can't see there would be any problem with running a Poly/ML program for a long time. Provided your application only requires a constant data size there's no reason why the heap should grow beyond a steady state. There will be periodic garbage collections of course.
I've now added code to the SVN version so that a thread created within foreign code can call an ML callback. I've done some simple tests of it but you may want to test it more exhaustively.
Regards, David