<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 26/11/2010 15:16, Esteban Aliverti wrote:
<blockquote
cite="mid:AANLkTims1KDx5c_v80M==xH39uc6bJ+_z53PoJE3GNC5@mail.gmail.com"
type="cite">Are you using the same session? Sessions are not
thread-safe in drools.</blockquote>
Sessions should be thread safe, if they aren't its a bug. Most of
the methods locks while executing.<br>
<br>
Looks like bug, something is blocking and not releasing.<br>
<br>
Mark<br>
<blockquote
cite="mid:AANLkTims1KDx5c_v80M==xH39uc6bJ+_z53PoJE3GNC5@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>Best, <br clear="all">
<br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
Esteban Aliverti<br>
- Developer @ <a moz-do-not-send="true"
href="http://www.plugtree.com" target="_blank">http://www.plugtree.com
</a><br>
- Blog @ <a moz-do-not-send="true"
href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br>
<br>
<div class="gmail_quote">On Fri, Nov 26, 2010 at 12:12 PM,
OptimusPrime <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:the.maxxxx@gmail.com">the.maxxxx@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<br>
Hello,<br>
<br>
I wrote a micro benchmark in order to test the performance
of Drools Flow<br>
5.1.0 in single and multi-threaded environments.<br>
<br>
And I noticed that, when 2 threads call startProcess() at
the same time<br>
(Intel Core 2 Duo CPU), the returned process instance IDs
are the same.<br>
<br>
I checked the code and it seems there is no locking
mechanism in the<br>
org.drools.process.instance.impl.DefaultProcessInstanceManager
class for the<br>
id creation.<br>
<br>
Is this a bug or am I missing something ?<br>
<br>
Thanks<br>
<font color="#888888">--<br>
View this message in context: <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/StatefulKnowledgeSession-startProcess-not-thread-safe-tp1973203p1973203.html"
target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/StatefulKnowledgeSession-startProcess-not-thread-safe-tp1973203p1973203.html</a><br>
Sent from the Drools - User mailing list archive at
Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>