A demo about domain level parallelism #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to make a demo, but it never works correctly. Usually
Fatal error: exception Stdlib.Queue.Empty
is raised.What should I do to get a domain level parallelism and report progress in the main thread/domain?
I mention @dinosaure because as the most active person in the repo :)
Update: It works, thanks to @dinosaure . I added a mutex to synchronize printing the output, because Format module is not domain safe. There is also an idea, that we can get the same result by using
Progress.Config.v
but at the moment I didn't succeeded without a mutex :)Spoiler warning: old error output