-1

I implemented uploading functionality in my project using spring and web services. I am able to upload a 30MB file but it takes time to upload. Now I want to upload a file bigger than 100MB but in less time. What should I do? How can I do it using multi threading?

MustangXY
  • 358
  • 2
  • 16

1 Answers1

2

Multithreading is almost certainly useless. Parallelism only helps if you can spread the slow part of your work out, and in file transfers, the limiting factor is nearly always either network bandwidth or disk speed.

chrylis -cautiouslyoptimistic-
  • 75,269
  • 21
  • 115
  • 152