db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <ar...@code-au-lait.de>
Subject Re: Synchronize LockManager methods
Date Thu, 11 Dec 2003 20:41:02 GMT
new test is in test suite, but you can run the test standalone with

bin\build.bat run-test 
-Dtest.package=org.apache.ojb.odmg.LockingMultithreadedTest

(run test against LockManagerDefaultImpl 1.4 fail, 1.5 pass)

regards,
Armin

Armin Waibel wrote:

> Hi all,
> 
> I wrote a multithreaded locking test against the ODMG api. Each thread 
> try to update the same object. Several threads share the same object 
> instance, the other threads use a deep copy of the shared object.
> 
> This test will pass if I synchronize all LockManagerDefaultImpl methods, 
> otherwise it fails most of the test runs. If someone knows a better way 
> to make odmg-locking "threadsafe", please let me know.
> 
> The performance issue of the synchronized methods is negligible.
> 
> regards,
> Armin
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message