Threading is actually a good solution for this kind of problem. It also happens to be one of the situations where threading is even useful on a single CPU machine. Each thread should spend most of its time waiting.

You might need to test to be sure that the library you are using to do the communications doesn't have any weird restrictions that stop threading, ...

G. Wade

In reply to Re: Testing many devices - are threads the answer? by gwadej
in thread Testing many devices - are threads the answer? by McDarren

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":