#9501: Make an @fork decorator
---------------------------+------------------------------------------------
Reporter: was | Owner: jason
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.5.1
Component: misc | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Simon King mentioned that sometimes his code crashes/leaks/etc. So make
it so one can do:
{{{
@fork
def f(x,y,z,...):
...
}}}
and then f gets computed in a blocking forked process, and the result is
returned via pickling. This is 100% to thwart mem leaks, segfaults, and
guaranteed timeout possibility. This could be basically just a light
wrapper around @parallel(1). Also, make a global flag to turn this off,
so @fork does nothing.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9501>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.