[rules-users] problem with threads
Edson Tirelli
tirelli at post.com
Thu Aug 30 08:33:16 EDT 2007
Raffaele,
Hashtable is synchronized already, and so you will not have any problem.
But answering your question, drools does not start any inner thread. It will
simply use the thread calling its methods, so the default java
synchronization mechanisms apply.
[]s
Edson
2007/8/30, Raffaele Viola <raffovi at gmail.com>:
>
> Hi all,
>
> I have a HashTable dawned by a thread T1, another thread T2 take this
> HashTable and give it to the working memory as assertion.
>
> what happens if T2 and JRools try to access to the HashTable?
> Can I consider the working memory as a thread and use a method
> synchronization to solve the concurrent access problem?
>
> Thanks
> Raffo
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070830/3f7371f8/attachment.html
More information about the rules-users
mailing list