<div>There is just one interpretation of &quot;thread-safe&quot;: All operations on an object are synchronized to avoid race conditions when two threads operate concurrently on an object.</div><div><br></div><div>Therefore it is, for instance, possible for two different threads to call, say, insert(): Locks ensure that one thread finishes the insertion before the other one is permitted to enter the critical section.</div>
<div><br></div><div>Notice, also, that a method such as fireUntilHalt() would be useless if the method would not guarantee proper synchronization while other threads (who else?) insert or modify or retract.</div><div><br>
</div><div>Mark&#39;s statement &quot;Each of the working memory actions hold a lock, so only one thread at a time can enter.&quot; is somewhat misleading - there isn&#39;t one lock &quot;held&quot; by &quot;each of the WM actions&quot;. There is one lock to be acquired and released by each action.</div>
<div><br></div><div>-W</div><br><div class="gmail_quote">On 10 February 2012 23:46, apache <span dir="ltr">&lt;<a href="mailto:apache.zoom@yahoo.com">apache.zoom@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mark<br>
 the first link in my previous post says something contradictory to what you<br>
mentioned. I understand that one thread at a time can use the session just<br>
not 2 or more threads at the same time . Is that what you meant too ?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Multiple-threading-tp3731592p3733915.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Multiple-threading-tp3731592p3733915.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>