in reply to Re^2: multi threading
in thread multi threading
If I were you I'd run a fairly small bunch of concurrent processes or threads (not a lot more than you have CPUs in your target machine) that would each do asynchronous DHCP requests (in other words, have each thread initiate a lot of requests, and handle the responses as they come in, instead of waiting for the response before doing the next request).
An event handling system is going to be much more efficient than threads for this kind of problem, and the only reason you really want to use threads or fork is to spread the load better over multiple processors (though you may not even need to).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: multi threading
by BrowserUk (Patriarch) on Mar 02, 2008 at 00:16 UTC | |
by Joost (Canon) on Mar 02, 2008 at 00:34 UTC |