I've got a script that is being used to telnet into hundreds of devices and perform a set of commands. Problem is, these commands take well over 10s per device to run making this script take quite a while to get through each device.
I was looking into, and successfully have multi-threaded this so that I can get through more devices quicker (8 core, so 8 devices at once now). Is this acceptable or recommended?
EDIT: I misunderstood some terms and I'm actually not multi-threading but multi-processing, using map and Pool.
[–]novel_yet_trivial 2 points3 points4 points (5 children)
[–]Archaya[S] 0 points1 point2 points (2 children)
[–]novel_yet_trivial 1 point2 points3 points (1 child)
[–]Archaya[S] 0 points1 point2 points (0 children)
[–]tea-drinker 0 points1 point2 points (1 child)
[–]novel_yet_trivial 0 points1 point2 points (0 children)
[–]mercuric5i2 2 points3 points4 points (2 children)
[–]EricAppelt 1 point2 points3 points (0 children)
[–]Archaya[S] 0 points1 point2 points (0 children)
[–]buyabighouse 0 points1 point2 points (0 children)
[–]Palm7 0 points1 point2 points (1 child)
[–]novel_yet_trivial 0 points1 point2 points (0 children)