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.
| [reply] |
nop... he is a good friend of mine whos interested to this problem too
| [reply] |
| [reply] |
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
| [reply] |