top-image

Tag archives for lock

Java : Management of Accesses Concurrent With Lock
Hello, I would like to expose a home-made solution in order to manage the concurrent accesses.   Here, a singleton named LockSingleton used on server side to: Put a lock for an user, Keep a lock for an user, Check the presence of a lock, Cleanup the locks every 30 seconds,   ...With the lock class:     That's all!!! Huseyin OZVEREN ...more»
Documentum : Concurrency patterns in DFC – Optimistic locking
Hi, Just a post concerning the concurrency in DFC for the error : DfException:: THREAD: http-0.0.0.0-0.0.0.0-9080-5; MSG: error: "Cannot save 0902xxxxxxxx15 sysobject."; ERRORCODE: 100; NEXT: DfException:: THREAD: http-0.0.0.0-0.0.0.0-9080-5; MSG: error: "save of object failed because of version mismatch: old version was 30"; ERRORCODE: 100; NEXT: null ... Followed by: DfException:: THREAD: http-0.0.0.0-0.0.0.0-9080-5; MSG: error: "save of object failed because of version ...more»
Java: Atomic integer example
After my post 'ThreadLocal, what is it?' I would write some words about the java.util.concurrent.atomic package that contains a small toolkit of classes supporting lock-free thread-safe programming on single variables. We will compare in this example the 3 types of shared counters: - a simple counter without synchronization or lock, - an advanced counter with synchronization, - an atomic counter without synchronization or lock ...more»
bottom-img
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.