[External] : Re: The Great Concurrency Smackdown: ZIO versus JDK by John A. De Goes
Pedro Lamarão
pedro.lamarao at prodist.com.br
Wed Mar 15 13:32:41 UTC 2023
Em qua., 15 de mar. de 2023 às 06:55, Ron Pressler <ron.pressler at oracle.com>
escreveu:
>
>
> On 15 Mar 2023, at 08:48, Alex Otenko <oleksandr.otenko at gmail.com> wrote:
>
> Re: race and leaks
>
> I think he is referring to the fact that even if you have a timeout, the
> tasks that haven't completed keep running. Maybe he is mistaken about it,
> but that's how I understand it, and as far as I can see the current
> blocking APIs don't solve this problem.
>
>
> He's mistaken. When the STS closes, all threads must have terminated. It’s
> not the `join` method that keeps waiting, but the `close` method.
>
Isn`t the point here about interruption, that is, when the timeout is
reached, the threads "keep running" in the sense that they are not
interrupted?
I am not asserting that they are not interrupted, that is how I understood
the original.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230315/51aba671/attachment.htm>
More information about the loom-dev
mailing list