[concurrency-interest] conditional put
Dhanji R. Prasanna
dhanji at gmail.com
Tue Nov 6 00:04:49 EST 2007
On 11/6/07, Dave Griffith <dgriffith at bellsouth.net> wrote:
> Just have the table (or some shadow table) contain either values or
> futures. Lock the combined "table with either values or futures"
> structure on every access (accesses will be shortlived, and not
> require locking for the duration of the deferred calculation) and you
> should be good to go. What am I missing?
Doesn't that defeat the use of CHM? If I am synchronizing the
put/evaluation at the data structure's granularity, then puts are
sequential not concurrent.
More information about the Concurrency-interest