Multi-File Device Sharing With Concurrent Compression and Transfer
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current file sharing methods in electronic devices involve sending multiple files one by one, which is inefficient.
Innovation Solution
Implementing a file sharing method that classifies files into two types: one for compression and one for direct sending, using separate threads for compression and transmission, and establishing a communication connection concurrently.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If multiple files are sent one by one sequentially, then the system complexity is low, but the file sharing efficiency is poor
Solution Approach 1:
The patent segments the file sending process into two parallel threads: a compression thread that compresses files and a sending thread that transmits files. This segmentation allows simultaneous execution of compression and transmission operations, improving file sharing efficiency without requiring complete system redesign
Solution Approach 2:
The compression thread performs file compression in advance before the sending thread transmits the compressed files. By preparing compressed versions of files beforehand, the system reduces the total transmission time and improves overall sharing efficiency
2Quantity of substance
If all files are compressed before sending, then the data amount is reduced, but the file sharing time is prolonged
Solution Approach 1:
The patent implements continuous useful action by having the sending thread transmit compressed files as soon as they are ready, while the compression thread continues compressing remaining files simultaneously. This eliminates idle waiting time and maintains continuous data transmission, reducing overall file sharing time while still achieving data compression
Solution Approach 2:
Files are compressed in advance by the compression thread before being transmitted by the sending thread. This preliminary compression reduces the data amount that needs to be transmitted, while the parallel execution ensures this doesn't significantly increase total sharing time
3Productivity
If files are compressed and sent in parallel threads, then the sharing efficiency is improved, but the device resource consumption increases
Solution Approach 1:
The system segments file processing into dedicated compression and sending threads, allowing efficient utilization of device resources through specialized task allocation. This segmentation improves sharing efficiency while managing resource consumption through structured parallel execution
4Quantity of substance
If files are classified and selectively compressed, then the data amount is optimized, but the processing complexity increases
Solution Approach 1:
The patent applies local quality by classifying files into different types (compressible and non-compressible) and applying compression selectively to appropriate file types. This targeted approach optimizes data amount reduction while avoiding unnecessary processing complexity for files that don't benefit from compression
Data Source
AI summary
Embodiments of this application provide a file sharing method and an electronic device. The method is applied to a first electronic device, and includes: displaying a first interface including an identifier of a second electronic device; establishing a communication connection to the second electronic device when receiving a first operation that is on the first interface and that is performed by a user on the identifier of the second electronic device, where the second electronic device is configured to receive multiple to-be-shared files sent by the first electronic device; sequentially compressing a preprocessing-type file in the multiple to-be-shared files to obtain a compressed file; and sending a direct-sending-type file in the multiple to-be-shared files and the obtained compressed file to the second electronic device through a data channel corresponding to the communication connection.


