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

CN102567097AActive Publication Date: 2012-07-11TCL KING ELECTRICAL APPLIANCES HUIZHOU
4 Cites 13 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2012-07-11

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a terminal for downloading multiple tasks. The method comprises the following steps of: starting a browser, and loading a dynamic library for download management in the browser; receiving a download instruction from a user through a page of the browser, calling a corresponding function interface of the dynamic library through a JavaScript extended interface of the browser, and writing data in a shared memory; and starting the download process, reading the data from the shared memory, and downloading the multiple tasks according to the read data. The download task of the browser is separated from the process of the browser based on the JavaScript extension of the browser, the multiple tasks of the browser are downloaded concurrently, a certain task in download states such as pause, cancel, continuation and the like can be manually controlled in the download process, the resource utilization rate of a central processing unit (CPU) and the performance of the browser are improved, the method and the terminal have the characteristics of high efficiency, humanization and the like, and the user has a good experience.
Need to check novelty before this filing date? Find Prior Art

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...