I think Luca Bascetta wrote:
>
> In this three months, during my work with Jess, I've found very usefull
> this mailing list. Now that I finished my work I wish to point out some
> things about Jess.
> First I've used two jess.Rete objects in my program, each one in a
> different thread, and a lot of other threads together with them, however I
> haven't had any problem: I think Jess it's really thread safe.
> In Jess, like in other classical language for expert systems, e.g Clips,
> the engine ends its work when there aren't rules that could be activated. I
> think this could be a strong limitation in multithreaded environment and
> when the system is able to interact with users in an asynchronous manner.
> This is a typical situation with Jess and the unique solution to make the
> engine alive is to write an unusefull and time consuming infinite loop.
> Perhaps Jess could have the opportunity to run the engine in such a way as
> it's alive till someone sends an halt command.
Java callers could easily use wait() and notify() to do something like this:
public class Lock
{
public synchronized boolean waitForEvent() { wait(); return true; }
public synchronized void provideEvent() { notify(); }
}
(then in other code; this runs forever with no busy-waiting)
Rete engine = ...
Lock l = new Lock();
...
do
engine.run();
while (l.waitForEvent());
(and in another Thread
engine.assert(...);
l.provideEvent();
>
> My work is an example of using Jess and Java to build a simple tamagochi.
> If somebody will be interesting in it I'll be happy to send it by email or
> let it on a web site.
We've been discussiong how a repository of examples would be a nice
addition to the Jess web site; your Tomagochi sounds like a fine
example. Perhaps you could make the code accessible from a web page, or send
it to me as a tar archive email attachment (not to th list, unless
it's fairly small.)
>
> Luca Bascetta
> email: [EMAIL PROTECTED]
> ICQ# 9105513
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------