Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Unload ithread

by chrism01 (Friar)
on Jul 25, 2008 at 04:50 UTC ( [id://700024]=note: print w/replies, xml ) Need Help??


in reply to Unload ithread

I believe its more a case of designing a thread's work unit in such a way that it is restartable from a known good pt. Think SQL Commit etc.
Then it needs to save that state to a file and exit. When the restart request comes in, the parent thr starts a new thr and instructs it to read the state file.
Any pre-reqs depend on whether they are std across all child thrs, in which case that can be coded in to the parent or child, or the child will have to save/extract the prereqs list from the file and performing the relevant actions.

Cheers
Chris

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://700024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found