in reply to Re^2: threads and SNMP Session
in thread threads and SNMP Session

I didn't see a join() anywhere in your app (which may explain your ability to get a result w/ sleep 1). After you spawn your threads, you need to explicitly wait for them all to complete via:
$thr->join(); $thr2->join(); ...etc...
Otherwise the main thread will just exit, which may cause the child threads to get prematurely killed.