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
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
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