How to Start a Software Company 2.0

by Richard Rodger

       
 
Some Volatile Patterns

I've always regarded Java's volatile variables as voodoo variables. In fact, I've been scared off by very many articles telling you how terribly dangerous they are. In cases like these I tend to retreat to the safety of a few good patterns.

Except, I could never find any good patterns for using volatile. Luckily, Brian Goetz has just written an article solving this problem! Go check out Managing volatility.

The patterns are:

And hey, it's Brian Mr. Concurrency Goetz, so this stuff has to be good!

tag gen:Technorati Tags: Del.icio.us Tags:

@ 11:08 AM GMT+00:00 [ comments [2] ]   email this   links to this

If you liked this entry, please consider bookmarking it &mdash Thanks!
Bookmark Some Volatile Patterns at del.icio.us Digg Some Volatile Patterns at Digg.com Bookmark Some Volatile Patterns at reddit.com Bookmark Some Volatile Patterns at YahooMyWeb Bookmark Some Volatile Patterns at Spurl.net Bookmark Some Volatile Patterns at Simpy.com Bookmark Polyphasic Mutants at NewsVine Blink this Some Volatile Patterns at blinklist.com Bookmark Some Volatile Patterns at Furl.net Fark Some Volatile Patterns at Fark.com

 
 
Trackback URL: http://www.richardrodger.com/roller/trackback/richard/Weblog/some_volatile_patterns
Comments:

He didn't talk about Atomic*FieldUpdaters. ;(

Admittedly they don't really fit in, making volatile variables behave like Atomic*.

Posted by Tom Hawtin on June 21, 2007 at 07:19 PM GMT+00:00
Website: http://jroller.com/page/tackline/ #

Do you have a link to a pattern for those - I can add it to the list?

Posted by Richard Rodger on June 25, 2007 at 09:30 AM GMT+00:00
Website: http://www.ricebridge.com #

Comments for this have been disabled. Please send me a mail if you want to comment and I will activate comments again.
 
YahooBloglines
NewsgatorMSN
Google Readerdel.icio.us FurlSubscribe with myFeedster
« June 2007 »
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
8
9
10
11
12
15
16
17
18
19
20
22
23
24
25
26
27
28
29
30
       
Today

All | General | Java | Business | Fun | Perl | Rant | Ireland | Web
[This is a Roller site]
[Valid Atom 1.0] [Valid RSS]
Technology Blog Top Sites
Blogarama - The Blogs Directory

Blog Directory & Search engine

Blog Flux Directory
Irish Blogs
 View My Public Stats on MyBlogLog.com

Performancing
Enter your Email


Powered by FeedBlitz
Theme adapted from Sotto.
 
Ricebridge XML Manager
  • Convert XML to a table of data
  • Convert XML to CSV, and CSV to XML
  • High-speed, single-pass XPath
  • Memory-stable and fault-tolerant
  • Loads of documentation
  • Cut-and-paste code examples
  • Find a bug, get a gift cert
Ricebridge Java XML Manager Component


Ricebridge CSV Manager
  • Convert CSV to a table of data
  • Handle any type of delimited file
  • Memory-stable and fault-tolerant
  • Loads of documentation
  • Cut-and-paste code examples
  • Find a bug, get a gift cert
Ricebridge Java CSV Manager Component


Popular Posts

 Sign up for MyBlogLog.com
Alertra Website Monitoring Service
Get Chitika eMiniMalls
Solo Tees
BlogJet