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?
Asked
Active
Viewed 384 times
-1
-
2I doubt multi-threading would change anything. You probably have a bandwidth problem, not a CPU problem. – JB Nizet Sep 20 '15 at 10:22
-
Than, How could I implement? – shivam dubey Sep 20 '15 at 16:13
-
possible duplicate of [Implementing large file uploads via HTTP](http://stackoverflow.com/questions/19158118/implementing-large-file-uploads-via-http) – Sachin Sep 20 '15 at 20:12
1 Answers
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