in reply to Re^3: multi threading
in thread multi threading
Unless the machine has multiple interface cards, there is very little if any benefit in using multiple threads or processes, or an event driven architecture, as regardless of the presence of multiple cpus, all the outbound packets will be serialised at the interface card.
He might as well just run a tight loop issuing requests as fast as the processor/interface can send them.
As UDP is connectionless, at most, he might benefit from two threads/processes per cpu. One to send as fast as possible and another to receive replies assuming he is going to bother.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: multi threading
by Joost (Canon) on Mar 02, 2008 at 00:34 UTC |