[Attempto] Thread safe about Ontology class
Changyuan Yu
reivzy at gmail.com
Mon Dec 12 15:43:33 CET 2011
Hi,
In order to make AceWiki RESTful api servlet be synchronized with
original AceWiki, I share the same Ontology object between two
servlet(by save the object in ServletContext). Currently, I do not
encounter any problem, but race condition will not easily happen
without heavy test or special designed test.
I read the code, and find many methods in Ontology are marked as
'synchronized', but there is no document explicit say that the class
is thread-safe. So I want ask is Ontology class thread safe? And how
about other classes?
--
Best regards,
Changyuan
More information about the attempto
mailing list