[concurrency-interest] Memory Semantics of CompletableFuture

Martin Buchholz martinrb at google.com
Wed Oct 25 02:47:10 EDT 2017


On Mon, Oct 23, 2017 at 1:44 PM, thurstonn <thurston at nomagicsoftware.com>
wrote:

> Again, I answer.
> I expect the lambdas to run concurrently, and *they do* - this is certain;
> the lambdas are the CFs, or to be more precise the CFs are just wrappers
> around the lambdas.
>
> I was asking about the memory visibility guarantees of the respective
> methods
>
>
I agree we should say more about memory visibility guarantees.

But common sense suggests that completion/start of dependent actions has
the semantics of volatile variable write/read ("total order of
synchronization actions")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20171024/bb4d3eca/attachment.html>


More information about the Concurrency-interest mailing list