Streaming Program Execution for Intelligent Terminals
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Intelligent terminals face challenges in efficiently upgrading operating systems and application programs, leading to increased hardware requirements and storage needs, resulting in a bloated and resource-intensive device.
Innovation Solution
A streaming program execution method where the intelligent terminal does not store a program package locally, instead, it is stored and managed by a server, with only the necessary segments (code, read-only data, and uninitialized/writable data) downloaded and loaded into local storage as needed for execution, using the ELF file standard and a mapping metadata table for data management.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the entire operating system upgrade package is downloaded and stored in flash memory, then the operating system can be upgraded, but the flash memory is erased and the upgrade process takes a very long time requiring stable network connection
Solution Approach 1:
The operating system upgrade package is divided into multiple segments (first segment, second segment, etc.) that are downloaded and executed sequentially. The first segment contains instructions to download and execute the second segment, enabling incremental updates without requiring the entire package to be downloaded at once, thus reducing upgrade time and network stability requirements.
Solution Approach 2:
The first segment of the upgrade package is downloaded and stored in advance in the flash memory. This preliminary action allows the device to begin the upgrade process immediately without waiting for the complete package, reducing overall upgrade time and enabling the process to continue even if network connection becomes unstable later.
2Adaptability or versatility
If many application programs are installed on the intelligent terminal, then more services can be obtained, but the storage space requirements increase and the device becomes bloated
Solution Approach 1:
Application programs are extracted from the device's internal storage and moved to the server for storage. The device only keeps minimal local information (such as metadata or small executable segments), while the bulk of application data resides remotely. This extraction dramatically reduces local storage requirements while maintaining access to diverse services through on-demand downloading.
Solution Approach 2:
The server serves as a universal storage repository for multiple application programs and operating system versions. Instead of each device needing to store all applications locally, the server provides multi-functional storage that can accommodate diverse applications for many devices, reducing individual device storage needs while maintaining service variety.
Data Source
AI summary
A streaming program execution method of an intelligent terminal is provided. The intelligent terminal does not store a program package of a program before the program is executed. The program package of the program includes a code segment, a read-only data segment, an uninitialized data segment, and a readable/writable data segment and is stored and managed by a server. The intelligent terminal obtains a program execution instruction, downloads the uninitialized data segment, the readable/writable data segment and the code segment of the program package from the server, loads the same into a local storage space and starts the execution of the program. During the execution process, according to a call request of the program on data of the code segment and the read-only data segment, the intelligent terminal downloads the requested data from the server and loads the data into the local storage space for the call of the program.


