Help with Networking
I wrote a network application that runs many threads (8 threads) and each thread connect to a different IP address (the IPs are all on the same network) and gets data from it, when I run any of the 8 threads (network connection) the program works just fine and gets the data as I want but when I activate two or more threads (i.e. two or more connections) the program gets too slow in getting the data, in the typical case it should get it in one second but when I run more than one thread it takes 5 to 6 seconds to get the data, any ideas, suggestions?
Thank you guys in advance.
I solved it :d
I was checking the IPs and the MAC addresses and I donot know why or whom but someone had changed the MAC addresses of all the computers to the same value, when I changed the values of the MAC addresses in the LANs to different values the software worked just fine.