From: Stavnitzky, J. <jst...@at...> - 2010-02-16 14:19:27
|
The type of multi-threading that I need is not within a single ICI script (I think that is the thread() functionality), but outside of the interpreter. Basically I have a C++ multithreaded application and I want to have each thread in my application have the ability to run different ICI functions at different times. There appears to be a section in the manual that is yet to be written on this. Are there any examples or tips or details on this? Jay -----Original Message----- From: Phil Barrett [mailto:ph...@fi...] Sent: Monday, February 15, 2010 1:23 PM To: Stavnitzky, Jay Cc: ici...@li... Subject: Re: [ICI] ICI multithreading Hi Jay > What level of multi-threading is supported by ICI? I see fork() support, > but what about allowing two scripts to run in the same process > concurrently? Has anyone ever asked for or done this? Any tips as to > what would be required to use/add this functionality? Threads are well supported using thread(). But as I discovered the other week, calling sys.fork() from a multithreaded app can easily cause deadlock. Phil -- Phil Barrett FilmLight This email communication is CONFIDENTIAL. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message and I ask that you please notify me by return email and delete this communication immediately. Thank you. |