Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^14: Thread Design help

by perlCrazy (Monk)
on Sep 11, 2010 at 17:52 UTC ( #859763=note: print w/replies, xml ) Need Help??

in reply to Re^13: Thread Design help
in thread Thread Design help

Thanks for response.
For ssh and DBI we will have two separate programs, and will be easy to maintain. for running in sequential, we will have problem.
Example: there is poosility of delay in process for few servers and might create problem when report won't be available on time.
I am thinking to use Thread::queue, will divide servers into 10-15 groups and kick off programm with GRP1..N as input parameter.
1. collector. pl GRP1 ## GRP1 will contain 30-40 dataserver
Please suggest if this approach is not efficient.

Replies are listed 'Best First'.
Re^15: Thread Design help
by Corion (Pope) on Sep 11, 2010 at 20:36 UTC

    You have two wars to fight:

    1. Retrieve information from services
    2. Parallelize tasks

    As I see it, you are currently neither clear of which has a higher priority, and what each task is to do. I really recommend that you separate the concerns. You can easily parallelize the task of information retrieval by starting programs in parallel. So do that instead of worrying about fork or threads.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859763]
[choroba]: Also, I'd try starting the App with the US layout and switch to the dead keys layout later
[Tux]: no, it was not .xinput related, but that did ring a bell. digging in my $ENV I found the cause: XMODIFIERS=@im=xim
[Tux]: Héŀłő çřűèļ ŵøŗľđ, ıŧ'š ºvəř

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-09-25 20:54 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (290 votes). Check out past polls.