CN104166588B - The information processing method and device of reading content - Google Patents

The information processing method and device of reading content Download PDF

Info

Publication number
CN104166588B
CN104166588B CN201310182111.4A CN201310182111A CN104166588B CN 104166588 B CN104166588 B CN 104166588B CN 201310182111 A CN201310182111 A CN 201310182111A CN 104166588 B CN104166588 B CN 104166588B
Authority
CN
China
Prior art keywords
task
reading content
execution
child node
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310182111.4A
Other languages
Chinese (zh)
Other versions
CN104166588A (en
Inventor
刘天扬
薄川川
赵千千
郝宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310182111.4A priority Critical patent/CN104166588B/en
Publication of CN104166588A publication Critical patent/CN104166588A/en
Application granted granted Critical
Publication of CN104166588B publication Critical patent/CN104166588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of information processing method and device of reading content, by terminal reader while executing a task, after detecting and receiving the triggering commands of other tasks, the method for obtaining the priority of each task and executing each task successively according to priority, the collision problem for solving multiple threads while database being called to be caused, when triggering execution task simultaneously with multiple threads, the advantageous effect executed successively according to priority improves the performance of terminal reader.

Description

The information processing method and device of reading content
Technical field
The present invention relates to the information processing technology more particularly to the information processing methods and device of a kind of reading content.
Background technology
Currently, the Content Organizing and UI of common reader(User Interface, user interface)Level contacts Too closely, the network request of reading content, be locally stored etc. and to be often performed simultaneously in the implementation procedure of UI, it will usually with UI's Normal execute generates conflict;Simultaneously as the flow of read function is simple, the reading content being locally stored(Such as certain news Abstract, text and picture etc.)There is no specific association is established, only simply it is deposited into database, when to be used It is associated again by inquiry.When reader only carries out a function such as normal browsing news item therein, being can be with Meet demand;However, once there is other to be added with relevant function is read(Such as request in advance is read data, is downloaded Data)When, necessarily cause the conflict of different function intermodule network request, data base read-write etc.;For example, being prefetched when existing Data(It is downloaded as offline)The request completion status of the case where concurrently being executed with normal browsing, news item will be uncontrollable.
Invention content
The main purpose of the embodiment of the present invention is to provide a kind of information processing method and device of reading content, it is intended to solve The problem of multiple threads call data call caused by database to conflict simultaneously.
The embodiment of the invention discloses a kind of information processing methods of reading content, include the following steps:
When detecting the operational order that user terminal is sent by operation interface based on reading content, triggering reading content operation The generation of task is instructed and is executed instruction;
It is instructed according to the generation of the reading content operation task, determines the main section that the reading content operation task includes Point task and/or child node task, generate according to determining host node task and/or child node task and preserve in the reading Hold the Task Tree of operation task;
According to executing instruction for the reading content operation task, the host node task for needing to execute in Task Tree is found out And/or child node task, it determines the execution priority of the host node task and/or child node task found out, is held according to determining Row major grade generates task execution queue, and executes the task in the task execution queue successively.
The embodiment of the invention also discloses a kind of information processing units of reading content, including:
Task trigger module, the operational order sent based on reading content by operation interface for detecting user terminal are touched The generation of hair reading content operation task is instructed and is executed instruction;
The task generation module determines the reading for being instructed according to the generation of the reading content operation task The host node task and/or child node task that content operation task includes are appointed according to determining host node task and/or child node Business generates and preserves the Task Tree of the reading content operation task;
The task execution module is found out for executing instruction according to the reading content operation task in Task Tree The host node task executed and/or child node task are needed, determines the execution of the host node task and/or child node task found out Priority generates task execution queue according to determining execution priority, and executes appointing in the task execution queue successively Business.
When the embodiment of the present invention is by detecting operational order that user terminal is sent by operation interface based on reading content, The generation of triggering reading content operation task is instructed and is executed instruction;It is instructed according to the generation of the reading content operation task, The host node task and/or child node task that the reading content operation task includes are determined, according to determining host node task And/or child node task generates and preserves the Task Tree of the reading content operation task;Appointed according to reading content operation Business executes instruction, and finds out the host node task for needing to execute in Task Tree and/or child node task, determines the host node found out The execution priority of task and/or child node task generates task execution queue according to determining execution priority, and holds successively The method of task in the row task execution queue has the advantageous effect for executing task according to priority of task grade, avoids Multithreading calls the different task of database or same thread while calling the data call conflict caused by database simultaneously, Improve the system performance of terminal.
Description of the drawings
Fig. 1 is the one embodiment flow diagram of information processing method of reading content of the present invention;
Fig. 2 be reading content of the present invention information processing method in one example structure of reading content operation task layout show It is intended to;
Fig. 3 be reading content of the present invention information processing method in execute task one in the task execution queue successively Embodiment flow diagram;
Fig. 4 is in the information processing method of reading content of the present invention, and terminal is downloaded offline and two threads of online browse are same Mono- embodiment signal streams of Shi Zhihang interact schematic diagram;
Fig. 5 is the one embodiment high-level schematic functional block diagram of information processing unit of reading content of the present invention;
Fig. 6 be reading content of the present invention information processing unit in one embodiment function module of task trigger module illustrate Figure;
Fig. 7 be reading content of the present invention information processing unit in one embodiment function module of task execution module illustrate Figure.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
The technical solution further illustrated the present invention below in conjunction with Figure of description and specific embodiment.It should be appreciated that this The described specific embodiment in place is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the one embodiment flow diagram of information processing method of reading content of the present invention;Such as Fig. 1 institutes Show, the information processing method of reading content of the present invention includes the following steps:
When step S01, detecting the operational order that user terminal is sent by operation interface based on reading content, triggering is read The generation of content operation task is instructed and is executed instruction;
Corresponding reading content is shown to user terminal by terminal according to the operation of user terminal;User terminal is based on eventually by UI The reading content of end display carries out corresponding operating, for example online browse reading content or is downloaded to the reading content of display Deng.
When terminal detects the operational order that user terminal is sent by UI based on reading content, triggering reading content operation is appointed The corresponding generation instruction of business is executed instruction with the reading content operation task.
Step S02, it is instructed according to the generation of the reading content operation task, determines the reading content operation task packet The host node task and/or child node task contained generates according to determining host node task and/or child node task and preserves institute State the Task Tree of reading content operation task;
Terminal is instructed according to the generation of the reading content operation task, corresponding to generate the reading content operation task; According to the reading content operation task of generation, identify that the reading content operation task is main node tasks or child node; According to recognition result, determine that the reading content operation task is main node tasks or child node task.
Meanwhile identifying whether each reading content operation task of generation includes subtask;If the reading content Operation task includes oneself corresponding subtask, then reads the subtask corresponding to the reading content operation task as this Read the corresponding child node of content operation task.I.e. when the above-mentioned identification reading content operation task is main node tasks, then should Subtask corresponding to reading content operation task is the child node task of the host node task;When the above-mentioned identification reading content When operation task is child node task, then the subtask corresponding to the reading content operation task is the next of the child node task Level of child nodes task.It is generated according to determining host node task and/or child node task and preserves the reading content operation and appointed The number of tasks of business.
The one of which concrete structure layout of the number of tasks please refers to Fig. 2, and Fig. 2 is at the information of reading content of the present invention One example structure schematic layout pattern of reading content operation task in reason method;As shown in Fig. 2, being read by what terminal was browsed It includes multiple channel lists to read content(Such as amusement, science and technology, finance and economics, education etc.), include a plurality of news under each channel list, And the content of each news includes following sub- content:Abstract, abstract picture, text and text picture, can will be in each single item Hold and sub- content regards an independent task as, while determining that each task is main node tasks or child node task;According to true Fixed host node task and/or child node task, just generates the number of tasks of reading content operation task as shown in Figure 2.
Step S03, executing instruction according to the reading content operation task finds out the main section for needing to execute in Task Tree Point task and/or child node task determine the execution priority of the host node task and/or child node task found out, according to true Fixed execution priority generates task execution queue, and executes the task in the task execution queue successively.
Terminal is executed instruction according to reading content operation task, finds out the host node task for needing to execute in Task Tree And/or child node task, and determine the execution priority of the host node task and/or child node task found out;Terminal can be by Corresponding priority is generated according to the importance of each task;Alternatively, can also be generated according to the ad hoc rules of user setting corresponding Priority.
For example user sets and browses priority of the priority of news higher than download online, then terminal is according to set by user This priority rule, the corresponding execution priority for determining each task;Alternatively, behavior of the terminal according to user in preset time period Custom generates the priority corresponding to each task type, for example, in one week user it is the most used be browsing science and technology news, then Set the task corresponding to browsing science and technology news to highest priority, and so on.It will be understood to those skilled in the art that The priority of each task can determine that the present embodiment looks for determination according to the concrete application scene of specific task and the task The concrete mode of the execution priority of the host node task and/or child node task that go out is not construed as limiting.
After the execution priority for determining the host node task and/or child node task found out, terminal is held according to determining Row major grade generates task execution queue, and executes the task in the task execution queue successively.
In a specific application scenarios, if terminal is carrying out the downloading A science and technology news of the task, if at this point, terminal is detectd When surveying and receiving the triggering command of the browsing A science and technology news this tasks, reader obtain the downloading A science and technology news of the task and Browse the priority of the task of A science and technology news;For example, getting the priority of the task of browsing A science and technology news higher than download A sections Browsing being executed for task of A science and technology news then is placed on to execute and downloads A science and technology news in queue by the priority of the task of skill news Task before, you can ensure browsing A science and technology news task than download A science and technology news priority of task execute.If terminal is just While executing the task of browsing A science and technology news, the downloading B educational news of the task is detected and receives, and it is new to download B education The priority of the task of news is less than the priority of browsing A science and technology news, higher than the priority for downloading A science and technology news, then will download B The task of educational news is inserted into task execution queue according to priority, and according to priority level, executes task execution queue successively In task.
When terminal executes task, the data manipulation conducted in each task execution process is strictly isolated with user terminal UI.
When the present embodiment is by detecting operational order that user terminal is sent by operation interface based on reading content, triggering The generation of reading content operation task is instructed and is executed instruction;It is instructed, is determined according to the generation of the reading content operation task The host node task and/or child node task that the reading content operation task includes, according to determining host node task and/or Child node task generates and preserves the Task Tree of the reading content operation task;According to holding for the reading content operation task Row instruction, finds out the host node task for needing to execute in Task Tree and/or child node task, determines the host node task found out And/or the execution priority of child node task, task execution queue is generated according to determining execution priority, and execute institute successively The method for stating the task in task execution queue avoids multithreading while calling the different task of database or same thread same When call database caused by data call conflict.
Please refer to Fig. 3, Fig. 3 be reading content of the present invention information processing method in execute the task execution queue successively In one embodiment flow diagram of task;As shown in figure 3, terminal executes the task packet in the task execution queue successively It includes:
Step S11, the network request for the task in the task execution queue that executes is sent to server end;
Step S12, it according to the task type of the task of being executed in the task execution queue, executes pointed by the task Data base read-write operation and/or the task pointed by file system read-write operation;
Terminal before execution task, ask by the network that the task in the task execution queue that executes is sent to server end It asks;After the response message for receiving server end return, according to the task type of the task, the number pointed by the task is executed According to library read-write operation;And according to the task type of the task, terminal determines the need for executing file system pointed by the task Read-write operation;If desired, terminal then executes file system read-write pointed by the task and operates;If not needing, terminal does not execute File system read-write pointed by the task operates.
Step S13, when the task execution is completed, task execution completion notice is sent to server end.
Terminal has often executed a task, and the notice of task execution completion can be sent to server end.
It can be by above-mentioned steps S11-S13 as the one of which task workflow for being terminal execution task;Preferably one Embodiment in, terminal can select to execute above-mentioned task workflow according to the concrete type of the task and task that specifically execute That is step S11 is at least one of step S13 steps.
For example, user's selection browses certain news item by terminal, when terminal receives the triggering command for browsing the news, The triggering command is responded, the network request for obtaining the news corresponding data is sent;According to browse the news task type, than Such as, if the news only includes word, the data base read-write operation browsed pointed by the news this task is executed;If the news Only include picture, then executes the file system read-write operation browsed pointed by the news this task;If the news had both included text Word is such as made a summary part, and includes that picture is such as made a summary picture, then first carries out and browse character portion of making a summary in the news this task Data base read-write pointed by point operates, then the file in this task of execution browsing news pointed by abstract Picture section System read-write operates, and the word segment of the corresponding abstract of the news got and Picture section are shown in UI, supplies User browses.
In executing the browsing the news of the task, if after user reads the corresponding abstract of the news and abstract picture, think Continue to browse the corresponding body part of the news, then user can select to continue to browse the corresponding body part of the news;At this point, Terminal receives and responds the triggering command for browsing this task of the body part of the news;The body part for browsing the news can be with It is interpreted as browsing the subtask corresponding to the news this task.The triggering that terminal response browses the corresponding subtask of the news refers to After order, the network request for executing the subtask is sent, repeats the task flow that above-mentioned reader executes task.Executing browsing In the task of the news, if after user reads the corresponding abstract of the news and abstract picture, it is not desired to continue to browse the news, then Terminal can send the notice for browsing the news this task execution completion to server end according to the user's choice;Certainly, eventually End can also only record the task execution and complete this implementing result, without sending the logical of task execution completion to server end Know.
When the present embodiment is by executing the task in task execution queue, according to the task type of performed task, flexibly The method that ground selects execution task workflow has the advantageous effect for saving terminal resource.
The realization of the information processing method of reading content of the present invention with specific application environment, will again be described below Journey.
Fig. 4 is please referred to, Fig. 4 is in the information processing method of reading content of the present invention, and terminal is downloaded offline and online browse Two threads are performed simultaneously embodiment signal stream interaction schematic diagram;As shown in figure 4, for downloading offline, user is from UI Selection needs the channel list such as science and technology news downloaded offline, and the instruction of generation task is then sent out by download execution module, hands over It is executed by task center module.Then it downloads execution module and selects currently the needing to execute of the task according to download policy module, It is sent to the execution of task execution center module.Entire downloading process realizes strictly disjointing for UI and data manipulation, downloads interface The operation needed is unified by downloading control centre's resume module, and it is sightless to UI to download execution module;And it downloads and executes mould The operating result of block, which is also only fed back to, downloads control centre's module, then determines to download what interface will do by downloading control centre's module Kind operation.
In system function module schematic diagram shown in Fig. 4, task execution center module maintains three Priority Queues, respectively Corresponding three kinds of different operations:Network request, data base read-write and file system read-write.Network request, data base read-write and text The operation that highest priority is only taken out in the corresponding operation of part system read-write from respective queue executes.When offline download and normally Browsing is when being carried out at the same time, download execution module and browse execution module be sent to the operation requests of task execution center module will be by Implementation strategy module is handled, and is inserted into queue after generating priority according to the importance of task.It is offline simultaneously download with just The public same Task Tree as shown in Figure 2 of the two function modules is often browsed, therefore the completion of each task can be shared Situation, to solve the collision problem concurrently executed.
The triggering command of other tasks is detected and received to the present embodiment while executing a task, by terminal Afterwards, the method for obtaining the priority of each task and executing each task successively according to priority solves multiple threads while calling The conflict that database is caused has multiple threads simultaneously when triggering execution task, the beneficial effect executed successively according to priority Fruit improves the performance of terminal.
With reference to Fig. 5, Fig. 5 is the one embodiment high-level schematic functional block diagram of information processing unit of reading content of the present invention.Such as Fig. 5 Shown, the information processing unit of reading content of the present invention includes:Task trigger module 01, task generation module 02 and task execution Module 03.
Task trigger module 01, the operational order sent based on reading content by operation interface for detecting user terminal, The generation of triggering reading content operation task is instructed and is executed instruction;
Corresponding reading content is shown to user terminal by task trigger module 01 according to the operation of user terminal;User terminal is logical It crosses the reading content that UI is shown based on terminal and carries out corresponding operating, such as online browse reading content or in the reading of display Appearance is downloaded.
When task trigger module 01 detects the operational order that user terminal is sent by UI based on reading content, triggering is read Generation instruction and the reading content operation task corresponding to content operation task execute instruction;And by the reading content Generation instruction corresponding to operation task is sent to task generation module 02, by executing instruction for the reading content operation task It is sent to task execution module 03.
Task generation module 02 is determined for being instructed according to the generation of the reading content operation task in the reading Hold the host node task and/or child node task that operation task includes, according to determining host node task and/or child node task Generate and preserve the Task Tree of the reading content operation task;
The generation for the reading content operation task that task generation module 02 is sent according to task trigger module 01 instructs, It is corresponding to generate the reading content operation task;According to the reading content operation task of generation, identify that the reading content is grasped It is main node tasks or child node to make task;According to recognition result, determine that the reading content operation task is main node tasks Or child node task.
Meanwhile whether each reading content operation task that the identification of task generation module 02 generates includes subtask; If the reading content operation task includes oneself corresponding subtask, corresponding to the reading content operation task Subtask is as the corresponding child node of reading content operation task.I.e. when task generation module 02 identifies reading content operation When task is main node tasks, then the subtask corresponding to the reading content operation task is that the child node of the host node task is appointed Business;When task generation module 02 identifies that the reading content operation task is child node task, then the reading content operation task Corresponding subtask is next level of child nodes task of the child node task.Task generation module 02 is according to determining host node Task and/or child node task generate and preserve the number of tasks of the reading content operation task.
Associated description in relation to number of tasks please refers to the specific descriptions of embodiment described in Fig. 2, and details are not described herein.
Task execution module 03, for executing instruction according to the reading content operation task, finding out in Task Tree needs The host node task and/or child node task to be executed determine that the execution of the host node task and/or child node task found out is excellent First grade generates task execution queue according to determining execution priority, and executes the task in the task execution queue successively.
Executing instruction for the reading content operation task that task execution module 03 is sent according to task trigger module 01, finds out The host node task executed and/or child node task are needed in Task Tree, and determine the host node task and/or child node found out The execution priority of task;Task execution module 03 can generate corresponding priority according to the importance of each task;Alternatively, Corresponding priority can be generated according to the ad hoc rules of user setting.
For example user sets the priority of browsing news and is higher than the priority of download online, then 03 basis of task execution module This priority rule set by user, the corresponding execution priority for determining each task;Alternatively, task execution module 03 is according to pre- The behavioural habits for setting user in the period generate priority corresponding to each task type, for example user is the most used in one week Be browsing science and technology news, then by browse science and technology news corresponding to task be set as highest priority, and so on.This field Technical staff be appreciated that the priority of each task can be by task execution module 03 according to specific task and the task Concrete application scene and determine, the present embodiment determines that the host node task found out and/or child node are appointed to task execution module 03 The concrete mode of the execution priority of business is not construed as limiting.
After the execution priority for determining the host node task and/or child node task found out, task execution module 03 Task execution queue is generated according to determining execution priority, and executes the task in the task execution queue successively.
In a specific application scenarios, if task execution module 03 is carrying out the downloading A science and technology news of the task, this When, if task trigger module 01 is detected and receives the triggering command of the browsing A science and technology news this tasks, generated by task Module 02 generates corresponding task, while task execution module 03 obtains the downloading A science and technology news of the task and browsing A science and technology news Task priority;For example, task execution module 03 gets the priority of the task of browsing A science and technology news higher than download A Browsing being executed for task of A science and technology news then is placed on to execute and downloads A science and technology in queue newly by the priority of the task of science and technology news Before the task of news, you can ensure that the task of browsing A science and technology news is executed than downloading the priority of task of A science and technology news.If task While execution module 03 is carrying out the task of browsing A science and technology news, the downloading B educational news of the task is received, and download B The priority of the task of educational news is less than the priority of browsing A science and technology news, higher than the priority for downloading A science and technology news, then The downloading B educational news of the task is inserted into task execution queue according to priority, and according to priority level, executes task successively and hold Task in row queue.
When task execution module 03 executes task, the data manipulation conducted in each task execution process and user terminal UI Stringent isolation.
In a preferred embodiment, when the task execution in the task execution queue is completed, task execution module 03 sends task execution completion notice to the task generation module 02.
When the present embodiment is by detecting operational order that user terminal is sent by operation interface based on reading content, triggering The generation of reading content operation task is instructed and is executed instruction;It is instructed, is determined according to the generation of the reading content operation task The host node task and/or child node task that the reading content operation task includes, according to determining host node task and/or Child node task generates and preserves the Task Tree of the reading content operation task;According to holding for the reading content operation task Row instruction, finds out the host node task for needing to execute in Task Tree and/or child node task, determines the host node task found out And/or the execution priority of child node task, task execution queue is generated according to determining execution priority, and execute institute successively The task in task execution queue is stated, multithreading is avoided while calling the different task of database or same thread while calling Data call conflict caused by database.
Please refer to Fig. 6, Fig. 6 be reading content of the present invention information processing unit in one embodiment function of task trigger module Module diagram;The present embodiment is only further described through task trigger module 02, the letter in relation to reading content of the present invention Other modules involved by breath processing unit please refer to the specific descriptions of related embodiment, and details are not described herein.
As shown in fig. 6, in the information processing unit of reading content of the present invention, task trigger module 01 includes:Boundary element 011, control unit 012 and execution unit 013.
Boundary element 011 sends operational order for being based on reading content by operation interface for user terminal, and examines in real time Survey the operational order whether user terminal has sent the reading content;
The boundary element 011 of terminal provides an operation interface, is sent pair to terminal by the operation interface for user terminal The operational order answered realizes human-computer interaction.Meanwhile whether detection user terminal has sent in the reading boundary element 011 in real time The operational order of appearance, and when detecting that user terminal has sent corresponding reading content operational order, sent to control unit 012 Detect the notification information of the reading content operational order.
Control unit 012, for detecting the reading content that user terminal is sent by operation interface in the boundary element When operational order, sends the generation instruction of reading content operation task and execute instruction to execution unit;
The generation instruction of the execution unit 013, the reading content operation task for sending described control unit turns Be sent to the task generation module, by reading content operation task that described control unit is sent execute instruction be forwarded to it is described Task execution module.
Control unit 012 detects that user terminal is grasped by the reading content that operation interface is sent in the boundary element 011 When instructing, sends the generation instruction of reading content operation task and execute instruction to execution unit 013;The execution unit The generation instruction for the reading content operation task that described control unit 012 is sent is forwarded to the task generation module 02 by 013, The executing instruction for reading content operation task that described control unit is sent is forwarded to the task execution module 03, to real Show the respective modules that the operational order that user terminal triggers is transferred to terminal, improves the interactivity of human-machine operation.
Please refer to Fig. 7, Fig. 7 be reading content of the present invention information processing unit in one embodiment function of task execution module Module diagram.The present embodiment is only described further task execution module 03, the information in relation to reading content of the present invention Other modules involved by processing unit please refer to the specific descriptions of related embodiment, and details are not described herein.
As shown in fig. 7, in the information processing unit of reading content of the present invention, task execution module 03 includes:Execute implementation Unit 031 and implementation strategy unit 032.
Implementation unit 031 is executed, by executing instruction for reading content operation task that the task trigger module 01 is sent It is forwarded to the implementation strategy unit 032;In reading of the implementation strategy unit 032 according to execution implementation unit 031 forwarding Hold executing instruction for operation task, find out the host node task for needing to execute in Task Tree and/or child node task, determination is found out Host node task and/or child node task execution priority, task execution queue is generated according to determining execution priority, And the task execution queue is sent to the execution implementation unit 031.Implementation unit 031 is executed according to the implementation strategy The task execution queue that unit 032 returns, executes the task in the task execution queue successively.
The execution implementation unit 031 executes the task in the task execution queue and is held according to the work of following task successively Row;The task workflow includes:
The network request for the task in the task execution queue that executes is sent to server end;
According to the task type of the task of being executed in the task execution queue, the database pointed by the task is executed File system read-write operation pointed by read-write operation and/or the task;
When the task execution is completed, task execution completion notice is sent.
Implementation unit 031 is executed before execution task, is sent to server end and executes this in the task execution queue The network request of business;After the response message for receiving server end return, according to the task type of the task, executes and implement list Member 031 executes the data base read-write operation pointed by the task;And according to the task type of the task, execute implementation unit 031 It determines the need for executing file system read-write pointed by the task to operate;If desired, it executes implementation unit 031 and then executes this The pointed file system read-write operation of business;If not needing, executes implementation unit 031 and do not execute file system pointed by the task Read-write operation.When above-mentioned task execution is completed, executes implementation unit 031 and send task execution completion to task generation module 02 Notice.
In a preferred embodiment, executing implementation unit 031 can be according to the specific of the task and task specifically executed Type, selection execute at least one step that above-mentioned task workflow is included.
For example, user selection by terminal browse certain news item execute described in first allow task when, execute implementation Unit 031 according to browse the news task type, if for example, the news only include word, execute browse the news this Data base read-write operation pointed by task;If the news only includes picture, executes and browse pointed by the news this task File system read-write operation;If the news is not only such as made a summary part including word, but also such as makes a summary picture including picture, then first Execute the data base read-write operation for browsing abstract word segment in the news this task, then execute browse the news this It makes a summary in business the file system read-write operation of Picture section, and by the word segment and figure of the corresponding abstract of the news got Piece part is shown in UI, is browsed for user.
In executing implementation unit 031 and executing the browsing the news of the task, if user reads the corresponding abstract of the news And after abstract picture, want to continue to browse the corresponding body part of the news, then user can select to continue to browse news correspondence Body part;At this point, this task of the body part of the execution execution browsing of implementation unit 031 news;Browse the news Body part can be understood as browsing the subtask corresponding to the news this task.Executing the response browsing of implementation unit 031 should After the triggering command of the corresponding subtask of news, the network request for executing the subtask is sent, above-mentioned reader is repeated and holds The task flow of row task.In executing implementation unit 031 and executing the browsing the news of the task, if user reads news correspondence Abstract and abstract picture after, be not desired to continue to browse the news, then execute implementation unit 031 can according to the user's choice, to Task generation module 02 sends the notice for browsing the news this task execution completion.
When the present embodiment is by executing the task in task execution queue, according to the task type of performed task, flexibly Ground selects execution task workflow, has the advantageous effect for saving terminal resource, further increases the performance of terminal.
The foregoing is merely the preferred embodiment of the present invention, it is not intended to limit its scope of the claims, it is every to utilize the present invention Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is directly or indirectly used in other relevant technology necks Domain is included within the scope of the present invention.

Claims (10)

1. a kind of information processing method of reading content, which is characterized in that include the following steps:
When detecting the operational order that user terminal is sent by operation interface based on reading content, reading content operation task is triggered Generation instruction and execute instruction;
It is instructed according to the generation of the reading content operation task, determines that the host node that the reading content operation task includes is appointed Business and/or child node task generate according to determining host node task and/or child node task and preserve the reading content behaviour Make the Task Tree of task;
According to executing instruction for the reading content operation task, find out the host node task for needing to execute in Task Tree and/or Child node task determines the execution priority of the host node task and/or child node task found out, preferential according to determining execution Grade generates task execution queue, and executes the task in the task execution queue successively.
2. the method as described in claim 1, which is characterized in that the task packet executed successively in the task execution queue It includes:
According to the task type of the task of being executed in the task execution queue, the data base read-write pointed by the task is executed File system read-write operation pointed by operation and/or the task.
3. method as claimed in claim 2, which is characterized in that described according to the task of being executed in the task execution queue Task type, execute pointed by the task data base read-write operation and/or the task pointed by file system read-write behaviour Further include before making:
The network request for the task in the task execution queue that executes is sent to server end.
4. method as claimed in claim 2 or claim 3, which is characterized in that described to execute appointing in the task execution queue successively Business further includes:
When the task execution is completed, task execution completion notice is sent to server end.
5. method as claimed in claim 1 or 2, which is characterized in that described to execute appointing in the task execution queue successively Business includes:
Data manipulation and user terminal operation interface in the task execution queue during each task execution is mutually isolated.
6. a kind of information processing unit of reading content, which is characterized in that including:
Task trigger module, the operational order sent based on reading content by operation interface for detecting user terminal, triggering are read It reads the generation instruction of content operation task and executes instruction;
Task generation module determines the reading content operation for being instructed according to the generation of the reading content operation task The host node task and/or child node task that task includes generate simultaneously according to determining host node task and/or child node task Preserve the Task Tree of the reading content operation task;
Task execution module is found out for executing instruction according to the reading content operation task and needs to execute in Task Tree Host node task and/or child node task, determine the execution priority of host node task and/or child node task found out, Task execution queue is generated according to determining execution priority, and executes the task in the task execution queue successively.
7. device as claimed in claim 6, which is characterized in that the task trigger module includes:
Boundary element sends operational order for being based on reading content by operation interface for user terminal, and detects user in real time Whether end has sent the operational order of the reading content;
Control unit, for detecting the reading content operational order that user terminal is sent by operation interface in the boundary element When, it sends the generation instruction of reading content operation task and executes instruction to execution unit;
The execution unit, the generation instruction of the reading content operation task for sending described control unit are forwarded to described The executing instruction for reading content operation task that described control unit is sent is forwarded to the task execution by task generation module Module.
8. device as claimed in claim 6, which is characterized in that the task execution module includes:
Implementation unit is executed, the executing instruction for reading content operation task for sending the task trigger module is forwarded to Implementation strategy unit;And the task execution queue returned according to the implementation strategy unit, the task execution team is executed successively Task in row;
Implementation strategy unit is looked for for executing instruction according to the reading content operation task for executing implementation unit forwarding It goes out on missions and needs the host node task executed and/or child node task in setting, determine the host node task and/or child node found out The execution priority of task generates task execution queue according to determining execution priority, and the task execution queue is sent out It send to the execution implementation unit.
9. device as claimed in claim 8, which is characterized in that the execution implementation unit is additionally operable to:
The network request for the task in the task execution queue that executes is sent to server end;
According to the task type of the task of being executed in the task execution queue, the data base read-write pointed by the task is executed File system read-write operation pointed by operation and/or the task.
10. the device as described in claim 6 or 8, which is characterized in that the task execution module is additionally operable to:
When task execution in the task execution queue is completed, sends task execution to the task generation module and complete to lead to Know.
CN201310182111.4A 2013-05-16 2013-05-16 The information processing method and device of reading content Active CN104166588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310182111.4A CN104166588B (en) 2013-05-16 2013-05-16 The information processing method and device of reading content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310182111.4A CN104166588B (en) 2013-05-16 2013-05-16 The information processing method and device of reading content

Publications (2)

Publication Number Publication Date
CN104166588A CN104166588A (en) 2014-11-26
CN104166588B true CN104166588B (en) 2018-10-09

Family

ID=51910420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310182111.4A Active CN104166588B (en) 2013-05-16 2013-05-16 The information processing method and device of reading content

Country Status (1)

Country Link
CN (1) CN104166588B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158919B (en) * 2020-01-20 2020-09-22 北京一流科技有限公司 Memory resource in-place sharing decision system and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049587A (en) * 2000-05-30 2002-02-15 Internatl Business Mach Corp <Ibm> Job monitor
CN1818897A (en) * 2005-12-07 2006-08-16 成都数聚网络发展有限公司 Production of multi-media network electronic publication
EP1999545A4 (en) * 2006-01-24 2011-04-27 Google Inc Facilitating client-side management of online advertising information, such as advertising account information
CN102830989A (en) * 2012-06-26 2012-12-19 腾讯科技(深圳)有限公司 Method for reader to provide service, reader and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060168522A1 (en) * 2005-01-24 2006-07-27 Microsoft Corporation Task oriented user interface model for document centric software applications
US8151323B2 (en) * 2006-04-12 2012-04-03 Citrix Systems, Inc. Systems and methods for providing levels of access and action control via an SSL VPN appliance
US20080243788A1 (en) * 2007-03-29 2008-10-02 Reztlaff James R Search of Multiple Content Sources on a User Device
CN101887444B (en) * 2009-05-15 2012-12-19 国际商业机器公司 Navigation method and system for webpage
EP2449466A1 (en) * 2009-06-30 2012-05-09 Citrix Systems, Inc. Methods and systems for selecting a desktop execution location
CN102004613B (en) * 2010-12-07 2015-12-09 无锡永中软件有限公司 The tree-shaped display packing of expression formula and evaluation technique

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049587A (en) * 2000-05-30 2002-02-15 Internatl Business Mach Corp <Ibm> Job monitor
CN1818897A (en) * 2005-12-07 2006-08-16 成都数聚网络发展有限公司 Production of multi-media network electronic publication
EP1999545A4 (en) * 2006-01-24 2011-04-27 Google Inc Facilitating client-side management of online advertising information, such as advertising account information
CN102830989A (en) * 2012-06-26 2012-12-19 腾讯科技(深圳)有限公司 Method for reader to provide service, reader and terminal

Also Published As

Publication number Publication date
CN104166588A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
CN104898952B (en) A kind of terminal split screen implementation method and terminal
US10445132B2 (en) Method and apparatus for switching applications
JP6383518B2 (en) Virtual machine monitor and virtual machine monitor scheduling method
WO2021012836A1 (en) Interface display method and apparatus, terminal, and storage medium
JP5423635B2 (en) Scheduling method, scheduling program, and scheduling device
CN109968352B (en) Robot control method, robot and device with storage function
CN103455234A (en) Method and device for displaying application program interfaces
US11652774B2 (en) Method and system for presenting conversation thread
KR20180009352A (en) Method and apparatus for data processing for mobile games
CN105630461A (en) Managing method of android application interface
CN107491346A (en) A kind of task processing method of application, apparatus and system
CN108287647B (en) Application running method and device
CN110471750A (en) Scheduled task control method, device, medium and computer equipment
CN107391274A (en) The processing method and processing device of deferred information
CN104166588B (en) The information processing method and device of reading content
CN111984355A (en) Method and device for realizing man-machine multi-turn conversation
CN109656669B (en) Launcher operation method, Launcher operation device, Launcher operation equipment and computer readable storage medium
US11855945B2 (en) Method, computer device, and non-transitory computer-readable recording medium to pick and display message in messaging-based social network service
CN106445286B (en) Method and device for determining focus of terminal screen based on split screen and terminal equipment
CN111770043A (en) Game data communication method, device, storage medium and electronic equipment
CN111031141B (en) Method and server for realizing customized configuration of voice skills
TWI714006B (en) Method and device for starting Active system of Android system
CN105531661A (en) Full screen content viewing interface entry
CN113134234A (en) Information display method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant