Jess generally takes care of itself, threadwise; you can safely use a
Rete object from multiple threads with no worries. YOu can certainly
add your own synchronization to prevent certain kinds of multiple
access, though. For example, your deffunction could use the
"synchronized" Jess-language function to keep itself from being
invoked concurrently.




I think Matthew Hutchinson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> G'day all,
> 
> Has anyone had experience with using Jess in a concurrent situation? I have
> the one Rete object that is being accessed by various objects' methods. Each
> of these objects will be doing the usual things such as reading and writing
> facts, forming rules, reading and writing to variables etc. I am a bit
> concerned becasue some of my deffunctions rely on global variables.
> 
> Are there any particular design tips or techniques I should know about? Does
> Java synchronization play a part?
> 
> 
> Cheers,
> Matt
> 
> 
> 
> 
> --
> Matthew Hutchinson
> Ph.D. Candidate
> Department of Spatial Sciences
> Curtin University of Technology
> GPO Box U1987
> Perth, Western Australia 6845
> 
> Visiting Scholar
> Department of Geography and Planning
> University of Akron
> Akron, Ohio USA



---------------------------------------------------------
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://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to