Think about Loose Coupling | |
PerlMonks |
Re: Unload ithreadby chrism01 (Friar) |
on Jul 25, 2008 at 04:50 UTC ( [id://700024]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|