Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File uploading system and method based on multithreading

A file uploading and multi-threading technology, which is applied in the field of file uploading system based on multi-threading, can solve problems affecting system performance and machine jams, and achieve the effect of utilizing upload bandwidth and fully uploading bandwidth

Active Publication Date: 2014-06-04
CHANGSHA YUBANG SOFTWARE DEV
View PDF6 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the deficiencies in the prior art above, the purpose of the present invention is to provide a file upload system and method based on multi-threading, so as to solve the problem of directly adopting multiple uploading methods without considering the hardware itself in the process of uploading large batches of small files in the prior art. Threads may appear stuck, etc., and even affect system performance.

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
  • File uploading system and method based on multithreading
  • File uploading system and method based on multithreading

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention provides a multi-thread-based file upload system and method. In order to make the purpose, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0043] see figure 1 , which is a flow chart of the multithread-based file upload method of the present invention. As shown in the figure, the method for uploading files based on multi-threading includes the following steps: S1. Obtain configuration parameters of the client computer, wherein the configuration parameters include the number of CPUs cpucount:

[0044] S2. Obtain the number of files filecount selected by the user to be uploaded;

[0045] S3. According to the number of CPUs cpucount and the numbe...

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 file uploading system and method based on multithreading. The method comprises the following steps: firstly, configuration parameters of a client are acquired, and a file count which needs to be uploaded by a user is selected at the same time; then, according to a cpu count and the file count, the number of threads which need to be established is determined according to predetermined rules; finally, files to be uploaded are distributed to the n threads according to the principle that file sizes are balanced, and the n threads operate at the same time till uploading is completed. The file uploading system and method based on multithreading improve uploading efficiency of large-batch small files (including word, txt, YOBON files, excel and other office files); besides, in the uploading process, the large-batch small files are divided into groups (the group division principle is that the difference value of file sizes in each group is the smallest and the most balanced) and uploaded through the multiple threads, and therefore the effect of making the most of uploading bandwidth is achieved.

Description

technical field [0001] The invention relates to the field of uploading large batches of small files, in particular to a system and method for uploading files based on multithreading. Background technique [0002] In the prior art, a large number of file uploads will use multi-threading technology to improve efficiency, but when allocating the number of threads, a one-size-fits-all model is often used, that is, only a fixed number of threads is allocated regardless of the configuration of the local computer hardware. This causes two problems: 1. The computer with good hardware configuration does not allocate enough threads, so that the hardware function is not fully utilized, which affects the upload efficiency; 2. The computer with low hardware configuration allocates too many threads, which causes the computer to freeze and also affects the uploading efficiency. File upload efficiency. [0003] In view of this, the prior art needs to be improved and improved. Contents 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
IPC IPC(8): H04L29/08G06F9/50
Inventor 谭曼
Owner CHANGSHA YUBANG SOFTWARE DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products