Project Loom VirtualThreads hang
Robert Engels
rengels at ix.netcom.com
Wed Dec 28 12:50:30 UTC 2022
Alex,
You write:
> I won't go into detail, but the producers not synchronizing between themselves leads to hangs.
Can you explain? Im fairly certain the producers do valid synchronization. As I said, using native threads the code runs to completion fine
Now that I understand the issue I was able to reproduce the issue very simply without any queues. See SpinTest posted to the project. The “starver” thread fails to make any progress - this should not be possible is Thread.yield() was fair.
> On Dec 27, 2022, at 11:15 PM, Alex Otenko <oleksandr.otenko at gmail.com> wrote:
> I won't go into detail, but the producers not synchronizing between themselves leads to hangs.
More information about the loom-dev
mailing list