On Aug 20, 2007, at 12:34 PM, Neelakantan Kartha wrote:
1. Suppose there are two (or more) threads that are asserting
facts to a single Rete engine (call it R).
I am assuming that such simultaneous multiple writes to R will
not cause any problem, since the manual states (in Section 11.6) that
"The most important lock is a lock on working memory: only one
thread will be allowed to change the working memory of a
given jess.Rete object at a time.". Is my assumption correct?
Yes.
2. What about two or more threads that are attempting R.run()
simultaneously? Can this potentially cause any problems or can we
assume that only one thread will be able to perform the run at a time?
Yes.
3. Where can I find more information about Jess and
sychchronization (apart from sections 11.5 and 11.6 in the manual)?
Besides studying the source code, you can ask me any specific
questions you may have. In general, Jess tries to be thread-safe.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------