Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] STM (was: Re: work times & accommodation @tokyo)



2008/7/28 Curt Sampson <cjs@example.com>:

> On 2008-07-28 08:05 -0700 (Mon), Josh Glover wrote:
>
>> Fork/join gives you that for free, and handles the locking with no
>> explicit code on your part.
>
> Fork/join handles no locking at all. If two separate threads spawned by
> that access the same data structure at the same time, and you haven't
> taken care of all of the locking, you're in big trouble.

Unless I am very badly mistaken, Java 7's f/j framework does the
locking for you. Generic f/j does not, of course.

-- 
Cheers,
Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links