Skip to content

Add monitor lock to stealWork#28

Open
TheBeggs wants to merge 1 commit intoed741:masterfrom
TheBeggs:master
Open

Add monitor lock to stealWork#28
TheBeggs wants to merge 1 commit intoed741:masterfrom
TheBeggs:master

Conversation

@TheBeggs
Copy link

@TheBeggs TheBeggs commented Apr 3, 2021

This monitor prevents Worker threads endlessly
trying to steal work from each other whenever
there is no work left. This is done by making
Worker threads sleep once they complete a full
search through all Worker threads with no
success. They are woken up again to check once
another Worker thread produces more work.

This monitor prevents Worker threads endlessly
trying to steal work from each other whenever
there is no work left. This is done by making
Worker threads sleep once they complete a full
search through all Worker threads with no
success. They are woken up again to check once
another Worker thread produces more work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant