-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously each run did this: - acquire a lock to take a task - acquire a lock to finish a task - if crashed, acquire a lock to start a new thread So to run 10 tasks without any crashes, we'd acquire the lock 20 times. With this update, we do this: - acquire a lock to take the first task - acquire a lock to release task N and take task N + 1 So to run 10 tasks without any crashes, we now acquire the lock 11 times.
- Loading branch information
1 parent
d0b6a46
commit 6a757ac
Showing
2 changed files
with
37 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters