A question on parallel
jgetino at telefonica.net
Mon Aug 26 08:51:12 PDT 2013
if the EDT is going to be blocked anyway until the operation completes, it
makes sense to use it in the meantime as a working thread.
Thanks for the info
De: Brian Goetz [mailto:brian.goetz at oracle.com]
Enviado el: lunes, 26 de agosto de 2013 17:36
CC: lambda-dev at openjdk.java.net
Asunto: Re: A question on parallel
The streams framework has no awareness of "special" threads like EDT.
EDT is the initiating thread, no different from any other thread.
When you initiate a terminal stream operation (sequential or parallel), the
initiating thread is blocked until the operation completes. If the
computation is parallel, the initiating thread may get coopted into being a
- No special behavior for EDT
- The seq/par distinction is indistinguishable from the EDT's perspective,
since both block until the operation is done.
Even if the initiating thread didn't temporarily join the worker pool, the
EDT would still be blocked.
On 8/26/2013 11:20 AM, Jose wrote:
> When running a parallel pipeline form the EDT, which policy
> determimine which tasks will run on the EDT?
> There is a way to make all the resulting tasks to run in working threads?
More information about the lambda-dev