Multi‑thread breakpoint download is implemented in the previous chapter. The quick download assistant is added with the breakpoint download function, and the speed statistics function is implemented tomorrow.
As follows:
The printed information is as follows:
Welcome to the quick download assistant --> download speed is not as fast as there are too many threads! Folder already exists default thread count: 3 save path: D:/zj_downloader parse download title: 61 total file length: 5577744d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 1 download: --- 0 ---> 1859247d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 2 download: --- 1859248 ---> 3718495d:/zj_downloader/handler thread: 3 download: --- 3718496 ---> 5577744 thread: 1 start download thread: 3 Start download thread: 2 start download pause download! Resolution download title: 61 total file length: 5577744d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 1 download: --- 0 ---> 1859247d:/zj_downloader/supervisor thread: 2 download: --- 1859248 ---> 3718495 thread: 1 download location: 235459 ---> 1859247d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 3 download: --- 3718496 ---> 5577744 thread: 2 download location: 1901741 ---> 3718495 thread: 3 Real download location: 4000029 ---> 5577744 thread: 1 start download thread: 3 Start download thread: 2 start download pause download! Resolution download title: 61 total file length: 5577744d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 1 download: --- 0 ---> 1859247d:/zj_downloader/supervisor thread: 2 download: --- 1859248 ---> 3718495 thread: 1 download location: 594753 ---> 1859247d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 3 download: --- 3718496 ---> 5577744 thread: 2 download location: 2297034 ---> 3718495 thread: 3 Real download location: 4372282 ---> 5577744 thread: 2 start download thread: 1 start download thread: 3 Start download pause download! Resolution download title: 61 total file length: 5577744d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 1 download: --- 0 ---> 1859247d:/zj_downloader/supervisor thread: 2 download: --- 1859248 ---> 3718495d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 3 download: --- 3718496 ---> 5577744 thread: 2 download location: 3265383 ---> 3718495 thread: 3 download location: 5048375 ---> 5577744 thread: 1 Real download location: 1449407 ---> 1859247 thread: 3 Start download thread: 2 start download thread: 1 start download pause download! Resolution download title: 61 total file length: 5577744d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 1 download: --- 0 ---> 1859247d:/zj_downloader/supervisor thread: 2 download: --- 1859248 ---> 3718495d:/zj_downloader/2013-07-18_youdaodict_baidu.alading.exe thread: 3 download: --- 3718496 ---> 5577744 thread: 1 download location: 1620061 ---> 1859247 thread: 3 download location: 5219029 ---> 5577744 thread: 2 Real download location: 3425957 ---> 3718495 thread: 1 start download thread: 3 Start download thread: 2 start download thread: 1 download completed thread: 3. Download completion thread: 2. Download completed. All threads have been downloaded!