|
Volatile field use cases?: msg#00068java.jsr.166-concurrency
Hi folks, Some of us were talking off line about the ways in which people use volatile fields. They can be used for writing a variety of interesting data structures, like non-blocking queues, but I have no idea how many people are doing this. I thought it might be interesting to ask the crowd here about the more interesting ways in which you use volatiles. Do you have something fabulously interesting that you do? Do you write non-blocking data structures? One thing I don't really know is if people ever write code that relies on strong guarantees between more than one volatile field -- do you? Basically, what are you folks using them to do? All of this is by way of finding out what the impact of the JMM has been, now that we are a couple of years down the line: seeing what works and what doesn't, and laying out plans for future memory models. Thanks, Jeremy
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Setting a Thread name in a ThreadPool, Gregg Wonderly |
|---|---|
| Next by Date: | Re: Volatile field use cases?, Kevin Condon |
| Previous by Thread: | Setting a Thread name in a ThreadPool, David Harrigan |
| Next by Thread: | Re: Volatile field use cases?, Kevin Condon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |