Multithreaded download method and device and computing device

A multi-threading and threading technology, applied in the direction of multi-program device, software deployment, transaction processing, etc., can solve problems such as download timeout and download task failure, achieve the goal of increasing download speed, improving download success rate, and shortening the total download time Effect

Inactive Publication Date: 2019-11-01
ALIBABA (CHINA) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If a certain thread fails to download or the download times out for some reason, even if all other threads complete the download successfully, the entire download task will fail or the download will time out

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multithreaded download method and device and computing device
  • Multithreaded download method and device and computing device
  • Multithreaded download method and device and computing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0031] As mentioned above, in order to improve the download success rate and shorten the total download time, the multi-thread assisted download mechanism of the present invention enables the current thread to judge whether other related threads are in the normal download state after the download is completed. In this case, take over the part of the download task that the thread is responsible for, and use the current thread itself to direct...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a multi-thread file downloading method and device, and computing equipment. A file to be downloaded is divided into a plurality of file zones, and each file zone corresponds to a section of downloading thread. The method comprises the following steps: when normal downloading is completed through a current thread, judging whether a next thread is in an abnormal downloading status or not, wherein the next thread is a downloading thread corresponding to the file zone subsequent to the file zone of which the downloading is completed through the current thread; and when it is determined that the next thread is in the abnormal downloading status, using the current thread to directly download the file zone corresponding to the next thread, and carrying out termination and exiting of the next thread. The method and device and the computing equipment provided by the invention have the advantages that through a multi-thread downloading assistance mechanism, the current thread successfully completing a downloading task can assist in the downloading of other relevant threads in the abnormal downloading status, so that a downloading success rate is improved, a total downloading time is shortened, and the downloading is accelerated.

Description

technical field [0001] The present invention generally relates to the technical field of file downloading, and in particular relates to a downloading method and device for realizing mutual assistance between multiple threads and a computing device. Background technique [0002] Download speed is one of the fundamental performance indicators in the field of file downloads. In order to optimize the use of network bandwidth and server resources to a greater extent, a multi-thread segmented download mechanism is generally used at present. That is, multiple threads are opened to request to download files in parallel at the same time, and each thread is responsible for downloading part of the specified file. When all threads have finished downloading, the entire content of the entire file has been downloaded. [0003] However, in the prior art, multiple threads of the same download task are independent of each other. Specifically, each thread is only responsible for the part of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/65G06F9/46
CPCG06F8/65G06F9/466
Inventor 蔡灿
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products