Hi,
I have a few questions concerning a Jess working within a multiple
threaded environment. What we want to achieve is to have a series of
rules which are applicable to the facts which a specific thread has
inserted in working memory. From reading the documentation we can group
a set of rules into the Module framework, and this suits fine. The issue
we have is that Working Memory is related to whatever Rules Module the
'focus' is assigned to. Keeping this in mind, in our scenario we could
have many threads asserting facts into Working Memory.
So lets say that Thread_1 assigns facts and then wants the engine to
run. It sets the focus to Module_1 and executes the run method on the
engine! The first issue is that the engine will analyse all facts in the
Working memory, even facts which Thread_1 has not inserted. The next
potential issue is that setting the focus for a specific Module and the
running of the engine are different tasks, i.e. they have different
locks, a thread could be setting the focus while at the same time
another thread could be ordering the engine to 'run'! If these
assumptions are correct, then with our scenario the changing of the
focus module could have unexpected effects! Is there a way to split the
working memory and just associate it with with a specific module. I
would imagine not?
We have thought about this problem and starting a Rete engine per
thread, which would solve our problem, but with potentially 100 threads,
this would not make sense, performance wise!!
Is there other ways around this with Jess? Any info appreciated!
Best regards,
Michael
--
Michael Frey
Telecommunications Software & Systems Group
ArcLabs Research & Innovation Centre
West Campus
Waterford Institute of Technology
Carriagnore, Co.Waterford, Ireland
mail: [EMAIL PROTECTED]
web: http://www.tssg.org
--------------------------------------------------------------------
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]
--------------------------------------------------------------------