in reply to Re^3: multi threading
in thread multi threading


thanks for the overwhelming information guys...

actually im tryin to test a dhcp server... sending massive
dhcp request... simultaneous if possible.. but since its
not... so ill just try to make may script fast and
efficient...

any suggestions how to accomplish this in perl?

Replies are listed 'Best First'.
Re^5: multi threading
by BrowserUk (Patriarch) on Mar 01, 2008 at 11:17 UTC
    actually im tryin to test a dhcp server

    Ah! So you are the Monk formerly known as drip, who posted Multi Threading help two days ago.

    The answer to your question was clearly indicated in that other thread. Unfortunately, it would appear that that you do not have enough knowledge of the task you are undertaking to recognise it.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      nop... he is a good friend of mine whos interested to
      this problem too
Re^5: multi threading
by stiller (Friar) on Mar 01, 2008 at 11:35 UTC
    I really don't know much details about networking, but there is 23 packages on CPAN when I search for dhcp dhcp, there is probably one for your use there.

    Now, waiting is one of those thing you actually can do a lot of at any instance, so threads or multiple proccesses (fork) makes a lot of sense in this case. To know what your results tell you, you will have to exercise fine controll over the number of concurrent requests to the server, i.e. how often to send another request, Time::HiRes can help with that.

    Try to start programming, and post code and direct questions if/when you're stuck.

    Update: After reading BrowserUk's answer right above; forget what I wrote here and study sundialsvc4's ansver in that other thread. It's very good. cheers