aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Usage of volatile Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Usage of volatile " Watch "Usage of volatile " New topic
Author

Usage of volatile

Reeta Champs
Greenhorn

Joined: May 09, 2007
Posts: 5
Hi All,

Could any one give me some examples for volatile usage. Like how it's different from the normal variables(class/member).

thanks
Reeta
suresh mulagala
Ranch Hand

Joined: Feb 18, 2003
Posts: 41
Try looking at this article...in volatile variables section

http://www.ibm.com/developerworks/library/j-thread.html

Suresh
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1493
For the exam, you will not be drilled-down on this one.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
suresh mulagala
Ranch Hand

Joined: Feb 18, 2003
Posts: 41
Its always good to know i guess
suresh mulagala
Ranch Hand

Joined: Feb 18, 2003
Posts: 41
Its always good to know i guess
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
The volatile keyword offers another way to provide synchronization over fields.

Please, read the Java Language Specification to find out more about it.
Reeta Champs
Greenhorn

Joined: May 09, 2007
Posts: 5
Hi All,

thanks for the reply.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Usage of volatile
 
Similar Threads
Usage of Volatile keyword
another thread question
volatile keyword
Volatile Confusion
Volatile