[Live-devel] Timing Issue on Processing of a Received Packet

Morgan Tørvolt morgan.torvolt at gmail.com
Wed Apr 25 14:54:21 PDT 2007


> I.e., if *every* packet takes 40 ms to process, and packets arrive
> less than 40 ms apart *on average*, then you're in trouble (and
> multiple threads will not be able to help you).  However, if packets
> arrive more than 40 ms apart *on average*, then you should be OK.

If Mr. Gurler has a dual core CPU, threading the thing could improve
performance, depending on how much CPU power the packet reception
system demands. If it is negligable then threading will probably not
give any improvement.
Also, if the processing is done in chunks, and this makes the input
buffer overflow while processing the image, threading could solve the
problem. Then again, increasing the buffer would probably work as
well, and give less headache regarding race conditions and such.

-Morgan-


More information about the live-devel mailing list