Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 10 of 10

Thread: I need a head-start on developing a split download

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    6
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need a head-start on developing a split download

    Hello guys am very happy to be here in this forum and I hope you can help me with this project of mine that am working on. Its titled split download. Here am trying to Develop a download manager that will improve the downloading process, by splitting big files into different parts, and download each part of the file parallel and then combine them properly Just like JDownloader not really too complex like it though but more like it especially the split download part of it. I was able to get a script from some eBook but that doesn't really solve my problem as it only downloads pause and resumes which is not really what am looking for. Any kinda help will be appreciated here guys;. Thanks again


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I need a head-start on developing a split download

    What part(s) are you having problems with?

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    6
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a head-start on developing a split download

    I need the download manager to split any file into multiple pats and download them individually and after the download is complete then it can bring all parts together to form the same file , which am sure makes downloading faster. you get me now?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: I need a head-start on developing a split download

    If there is more than one thread doing a down load, the extra threads can interfere with each other and increase the total time to do the download.
    It can depend on the differences between the server speed, the internet connection speed and the PC's speed and number of cores.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I need a head-start on developing a split download

    . . . you get me now?
    I pretty much got you the first time. I just don't understand what you want from us. What's your question?

  6. #6
    Junior Member
    Join Date
    May 2014
    Posts
    6
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a head-start on developing a split download

    how then can I implement that with minimal resource consumption?

  7. #7
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: I need a head-start on developing a split download

    resource consumption is different from thread contention.

    What is the objective?
    Do it faster?
    do it cheaper?
    or ???
    If you don't understand my answer, don't ignore it, ask a question.

  8. #8
    Junior Member
    Join Date
    May 2014
    Posts
    6
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a head-start on developing a split download

    Thanks for your attention here bro. DO it faster is the main objective am aiming at.
    I really appreciate your response.

  9. #9
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: I need a head-start on developing a split download

    Do some experimenting to see if parallel downloads can be faster than a single thread:
    Do you have code that will do a download of the file in a single thread?
    Add some code to it that times how long it takes.
    Do some downloads one at a time and save the times.
    Now execute the code in parallel with itself and collect the times.
    Look at the data and see which scheme loads bytes faster.

    For example
    single thread: 10M in 10 secs >> 10M/10s = 1M/sec
    dual threads: 2*10M in 15 secs >> 20M/15s = 1.33M/s << faster
    or
    dual threads: 2*10M in 25 secs >> 20M/25s = 0.8M/s << slower
    If you don't understand my answer, don't ignore it, ask a question.

  10. The Following User Says Thank You to Norm For This Useful Post:

    GregBrannon (May 25th, 2014)

  11. #10
    Junior Member
    Join Date
    May 2014
    Posts
    6
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a head-start on developing a split download

    Quote Originally Posted by Norm View Post
    Do you have code that will do a download of the file in a single thread?
    Yes I do have a code that can do a single thread download. I will try your method and see how it works. thanks alot for your help.

Similar Threads

  1. [SOLVED] head is fried
    By SOLAS in forum What's Wrong With My Code?
    Replies: 20
    Last Post: April 5th, 2013, 12:35 PM
  2. Trying to wrap my head around Java
    By Sylis in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 10th, 2012, 08:10 AM
  3. head help with file reading
    By jack13580 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: July 28th, 2012, 11:48 PM
  4. Cannot get my head around this :S
    By hillzyy in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: July 17th, 2012, 02:21 PM
  5. Easy but over my head
    By Dejay79 in forum Java Theory & Questions
    Replies: 3
    Last Post: March 14th, 2012, 10:54 AM