Re: [OT] Performance of AtomicLong

2006-05-28 Thread Leon Rosenberg
Hi FIlip, I actually made a test last night: http://moskito.anotheria.net/AtomicVsSynchronized.html On suns jdk it seems to be faster, but not on jrockit. And synchronized on jrockit seems to be faster than atomic on sun on 1 processor machines. regards leon On 5/28/06, Filip Hanik - Dev List

Re: [OT] Performance of AtomicLong

2006-05-28 Thread Filip Hanik - Dev Lists
yes, compared to using synchronized, this is a huge improvement Leon Rosenberg wrote: Hi, have someone made some actual measures on performance of atomiclong compared to old-style synchronization? Sun stats (http://java.sun.com/developer/technicalArticles/J2SE/concurrency/) that Atomics are f

[OT] Performance of AtomicLong

2006-05-27 Thread Leon Rosenberg
Hi, have someone made some actual measures on performance of atomiclong compared to old-style synchronization? Sun stats (http://java.sun.com/developer/technicalArticles/J2SE/concurrency/) that Atomics are faster than the synchronized() block, but from the implementation of some methods I would a