Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Executing long perl scripts (>2h) in a browser

by jpl (Monk)
on Jun 29, 2011 at 10:45 UTC ( #911926=note: print w/replies, xml ) Need Help??


in reply to Re: Executing long perl scripts (>2h) in a browser
in thread Executing long perl scripts (>2h) in a browser

We can return this discussion to the perl domain by asking what a perl script can do if it finds itself with restricted, but modifiable, resource limits. The short answer is BSD::Resource from Jarkko Hietaniemi. It's a nice interface to the getrlimit and setrlimit calls (and a few others that cannot be invoked as perl builtins).

Resource limitations have to be addressed as subroutine calls, not by something invocable with system(). A child process can (try to) modify its own limits, but it cannot modify the limits of its parent.

  • Comment on Re^2: Executing long perl scripts (>2h) in a browser

Replies are listed 'Best First'.
Re^3: Executing long perl scripts (>2h) in a browser
by ionelica (Initiate) on Jun 30, 2011 at 13:55 UTC

    Thanks a lot for all your suggestions!

    I checked the indicated resources & the "design" suggestions and came out with the following solution: the web page shall be used just to call my script, using the Win32::Process, with the DETACHED_PROCESS option.

    Thanks again, i.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://911926]
help
Chatterbox?
[afoken]: http://floating- point-gui.de/ ?
[haukex]: What Every Computer Scientist Should Know About Floating-Point Arithmetic?
[Discipulus]: the winner is..
[Discipulus]: Mr haukex from Germany! thanks a lot to the other parteciapant our dear Mr afoken.. ;=)
[Discipulus]: no, seriously thanks both, i missed 'scientist' and 'floating point' and the resarche was imposible..

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-06-26 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (594 votes). Check out past polls.