Java multithreaded file downloading performance

前端 未结 4 1808
难免孤独
难免孤独 2020-12-13 10:24

Having recently worked on a project which required some more IO interaction than I\'m used to, I felt like I wanted to look past the regular libraries (Commons IO, in partic

4条回答
  •  情深已故
    2020-12-13 11:03

    Set a very large socket receive buffer. But really your performance will be limited by the network bandwidth, not CPU bandwidth. All you're doing really is allocating 1/3 of the network bandwidth to each downloader. I'd be surprised if you get much benefit.

提交回复
热议问题