Dear Torsten, On Thu, Mar 12, 2009 at 1:52 PM, Torsten Anders < [email protected]> wrote:
> Dear Raphael, > > Thank you very much for your quick response. > > On Mar 12, 2009, at 8:43 AM, Raphael Collet wrote: > >> On Wed, Mar 11, 2009 at 11:11 PM, Torsten Anders < >> [email protected]> wrote: >> >>> I would like to do parallel search where the script contains objects. >>> >> >> Are those objects global? If that's the case, then they are stateless (or >> at least, you don't modify them from inside computation spaces). >> > > The objects are only created within the script and are thus situated in > local computation spaces. If the objects never reach the toplevel space, there should be no problem with those objects. Simply check that - the objects are created by running the script only, - no object reference is accessible from the root variable, and - no object is ever sent on a port that belongs to the toplevel space. If all three conditions above are satisfied, the objects are not the problem. Also make sure that your classes do not use shared state or resources (like System, FD, and so on). If the classes depend on something like the FD module, then make the search functor (the one you give to the search engine) import the modules where the classes are defined, and make the script refer explicitly to that imported module. By the way, can you describe more precisely the problem you are experiencing? We could give you better advice if we have a bit more info... Cheers, raph
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
