Re: Thread safety and atomic assignment (again)
- From: "Mike Schilling" <mscottschilling@xxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 13:30:00 -0700
Matt Humphrey wrote:
As a clearer example of this point, if the object used for setValue
had non-volatile fields that were not assigned in the constructor,
there is nothing that guarantees that the updated values of those
fields will be visible in a different thread.
Unless, of coujrse, the object itself guarantees that by synchronizing
the getter(s) and setter(s).
.
- References:
- Thread safety and atomic assignment (again)
- From: Philipp
- Re: Thread safety and atomic assignment (again)
- From: Matt Humphrey
- Thread safety and atomic assignment (again)
- Prev by Date: Re: Inconsistent CPU usage
- Next by Date: Re: Inconsistent CPU usage
- Previous by thread: Re: Thread safety and atomic assignment (again)
- Next by thread: future in computer
- Index(es):