Re: Java Memory Model and ParallelStream

Luke Hutchison via Concurrency-interest <[email protected]>
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <CAHLUFO=xjUXLJPYsGmCQSs0i-=d=UBTuKJcrkQXOJQd_nVsqgA@mail.gmail.com>
On Fri, Mar 6, 2020, 7:45 AM Andrew Haley <[email protected]> wrote:

> To answer that I'd need to be told what a "computational barrier" is. I
> have some guesses, but I think you should spell it out.
>

I was referring to a barrier in the standard sense of a synchronization
mechanism that waits for some set of threads to finish some set of tasks
before continuing. I added the word "computational" and "memory" before
"barrier" to disambiguate the "happens-before" of computational work from
the "happens-before" of writing values to memory, viz JMM. I then asked if
these two "happens-before" relationships can be assumed to be exactly
equivalent (i.e. taking into account JMM, and how JMM works with cache
coherency behavior, out-of-order execution, etc.).

_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.