Method and terminal for downloading multiple tasks
A multi-task download and task technology, applied to multi-program devices, etc., can solve problems such as inconvenient operation for users, affect the overall performance of web pages, waste CPU resources, etc., achieve good experience, improve CPU resource utilization and browser performance Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2012-07-11
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of browser task downloading, in particular to a method and terminal for multi-task downloading based on javascript extension on a terminal such as a TV. Background technique
[0002] At present, browsers have been widely used in televisions, and browsing webpages and downloading files through browsers on televisions has become the main means for televisions to download files.
[0003] However, the traditional TV downloading files through the browser is a single-task download, and the download task is in the same process as the browser. If you need to download multiple files from the browser of the TV, you can only wait for the current download task to complete. After that, start the next download task, which will inevitably affect the overall performance of the webpage and waste CPU resources, and because the browser consumes time and energy, it affects the performance of the browser, resulting in poor user ...
Examples
Embodiment Construction
[0050] The main solution of the present invention is: based on the javascript extension of terminal browsers such as televisions, the browser download task is independent from the browser, so that the browser can download multiple tasks concurrently, fully utilize CPU resources, and improve user experience.
[0051] In the present invention, the terminal may be a TV installed with a browser, a computer, etc., and the following embodiments will be described by taking the terminal as an example.
[0052] The communication between the browser in the TV set and the task downloading process is carried out through shared memory, and the synchronization and mutual exclusion between the browser and the task downloading process are realized through locking and unlocking in the form of semaphore. When the user operates the button on the web page, the browser kernel javascript extension interface will be invoked, and the javascript extension interface will invoke the corresponding functio...