I use java socket to transmit file.Because the speed is too slow , so I segment file into parts and transmit them by socket(different ports) and multi threads,so now the time of transmitting file will be the time of last part arrived at client(before last part arrived,some small parts had arrived). I compare the original method and my new method, I find that although the size of original is bigger than the last part of my new method , sometimes , the time of my method is larger than original.Can someone tell me why?
Asked
Active
Viewed 108 times
0
-
Your program has bugs. You need to debug it. – Martin James Dec 12 '13 at 13:25
-
Can you explain more? – user3044480 Dec 13 '13 at 01:58