I suspect your main problem is that you're trying to use the same instance of the SSH connection in all threads. Creating a new thread doesn't automagically also create a new independent duplicate of the connection (socket, server-side process, and all), so the SSH will probably get mildly confused when multiple clients are talking simultaneously on the same line...
In reply to Re^3: Need help with Perl multi threading
by Eliya
in thread Need help with Perl multi threading
by ashok.g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |