in reply to Re^12: Thread Design help
in thread Thread Design help
Given your very vague specifications, I would very strongly consider using completely separate programs. Both, fork and threads will consume many resources and make debugging your program very hard.
As you need to perform very different tasks (connect via ssh, connect via DBI, ...), putting all the code for these different tasks into one program makes little sense.
Have one central program that starts the specific programs as separate children. Consider maybe Parallel::Jobs or simple open "$child |" to run your child processes in parallel.
But before thinking about how to do things in parallel, I really, really urge you to first get things working in a serial fashion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Thread Design help
by perlCrazy (Monk) on Sep 11, 2010 at 17:52 UTC | |
by Corion (Patriarch) on Sep 11, 2010 at 20:36 UTC |