Method and device for downloading resources
AssigneeAlibaba Group Holding Limited
InventorJie Shi
Life of this patent
Estimating the term…
Abstract
Method and device for downloading resources, applicable to a peer to peer (P2P) network. The method includes: initiating a downloading task according to a downloading request from a resource requester; acquiring data of the downloading task and writing the data of the downloading task to a memory; and reading the data from the memory and providing the data to the resource requester. The present invention can reduce the amount of magnetic disk consumption due to resource downloading.
Claims20
A method for downloading resources, applied to a peer-to-peer (P2P) network, the method comprising:
- initiating a downloading task according to a downloading request from a resource requester;
- acquiring data of the downloading task and writing the data of the downloading task to a memory;
- reading the data from the memory and providing the data to the resource requester;
- and
- writing the data in the memory to a magnetic disk based on a determination that the downloading task is complete when the data in the memory reaches a preset upper limit of use.
A device for downloading resources, applied to a peer to peer (P2P) network, the device comprising:
- an initiating module for initiating a downloading task according to a downloading request from a resource requester;
- an acquisition module for acquiring data of the downloading task;
- a memory module for writing the data of the downloading task to a memory;
- a providing module for reading the data from the memory and providing the data to the resource requester;
- and
- a magnetic-disk writing module for writing the data in the memory to a magnetic disk based on a determination that the downloading task is complete when the data in the memory reaches a preset upper limit of use.
Dependencies are inferred from the claim text.