wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Is Volatile Long in java1.4 atomic? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Is Volatile Long in java1.4 atomic?" Watch "Is Volatile Long in java1.4 atomic?" New topic

Is Volatile Long in java1.4 atomic?

sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69

I want to ask that whether volatile long or volatile double in java1.4 is atomic or not?

In java1.5 it is atomic but i am confused regarding java1.4.

Darryl Burke

Joined: May 03, 2008
Posts: 4523

sandy, please BeForthrightWhenCrossPostingToOtherSites

luck, db
There are no new questions, but there may be new answers.
Henry Wong

Joined: Sep 28, 2004
Posts: 18529

Also, please SearchFirst. This topic has been discussed before....


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
It is sorta covered in the JavaRanch Style Guide.
subject: Is Volatile Long in java1.4 atomic?
Similar Threads
volatile type modifier
synchronization problem: Please help me
Can not decide in this scenario:
Atomic operation
Behaviour of Volatile variables