-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallel::Deadworker on repetitive method use #185
Comments
don't return inside the block ... use something like you might be running into some process limits due to forking so fast :( can you paste the full source or ideally a super smaller example that fails ? |
Here is the link to the gist of the source code for the whole file. https://gist.github.com/jzakiya/cfb1da397b03dff1ff7c1dbe0d57720e |
running it just fine with: 1000.times do does that fail for you ? On Tue, Aug 2, 2016 at 7:40 PM, Jabari Zakiya [email protected]
|
The original code snippet that produced the error was this: If you use the serial versions Also, the below example fails too for all the versions using
Here is the method in
|
I've created a primes testing method using the Miller-Rabin algorithm using the Parallel.each method. It works great when used with time between usages. When used in a loop to find the primes within a range above a certain size it throws Parallel::Deadworker errors.
Using Parallel::Kill or Parallel::Break seems to have no (little) affect.
The text was updated successfully, but these errors were encountered: