CN111427654B - Instruction processing method and device - Google Patents

Instruction processing method and device Download PDF

Info

Publication number
CN111427654B
CN111427654B CN202010286754.3A CN202010286754A CN111427654B CN 111427654 B CN111427654 B CN 111427654B CN 202010286754 A CN202010286754 A CN 202010286754A CN 111427654 B CN111427654 B CN 111427654B
Authority
CN
China
Prior art keywords
instruction
multimedia data
processing
queue
instructions
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
CN202010286754.3A
Other languages
Chinese (zh)
Other versions
CN111427654A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010286754.3A priority Critical patent/CN111427654B/en
Publication of CN111427654A publication Critical patent/CN111427654A/en
Application granted granted Critical
Publication of CN111427654B publication Critical patent/CN111427654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3004Arrangements for executing specific machine instructions to perform operations on memory
    • G06F9/30043LOAD or STORE instructions; Clear instruction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a method and a device for processing instructions, which relate to the field of communication, and can save CPU resources and improve the operation smoothness of a terminal when pictures are loaded and destroyed in batches, so that the user experience is improved. The specific scheme comprises the following steps: responding to the triggering operation of the multimedia data, generating a processing instruction of the multimedia data, wherein the processing instruction is a loading instruction or a releasing instruction, the loading instruction is used for indicating the loading of the multimedia data, and the releasing instruction is used for indicating the deletion of the successfully loaded multimedia data; if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue, deleting the processing instruction of the multimedia data and the first instruction, wherein the waiting queue comprises the generated and to-be-executed instruction.

Description

Instruction processing method and device
Technical Field
The disclosure relates to the field of communications, and in particular, to a method and a device for processing instructions.
Background
Native development (Flutter) is a mobile User Interface (UI) framework that can display pictures through custom controls. However, since the custom control cannot meet the requirements on display efficiency and memory, the router needs to call a native system (the native system refers to a system of the terminal itself, such as an android system) to load the picture. Flutter can quickly build high quality native user interfaces on native systems.
In the related art, when a user views a picture in an application or a web page of a terminal, the router may send a loading instruction of each picture to the native system, and the native system obtains a corresponding picture according to the loading instruction of each picture and transmits the picture to the router for display. When the user slides the picture out of the screen of the terminal, the router can send a release instruction of the picture to the original system, and the original system deletes the picture in the memory according to the release instruction of the picture.
However, when a user views a large number of pictures and makes a quick slide, as each picture appears in the screen, the router invokes the native system to load the picture, and when the picture disappears from the screen, invokes the native system to delete the picture. Therefore, the UI thread of the terminal frequently loads and destroys pictures, so that processor (central processing units, CPU) resources are wasted, the clamping phenomenon of the terminal is caused, and the user experience is affected.
Disclosure of Invention
The invention provides an instruction processing method and device, which can save CPU resources and improve the running smoothness of a terminal when pictures are loaded and destroyed in batches, so that the user experience is improved. The technical scheme of the present disclosure is as follows:
According to a first aspect of the present disclosure, there is provided an instruction processing method, applied to a terminal, the method including:
responding to triggering operation of multimedia data, and generating a processing instruction of the multimedia data; the processing instruction is a loading instruction or a release instruction, the loading instruction is used for indicating the loading of the multimedia data, and the release instruction is used for indicating the deletion of the successfully loaded multimedia data;
deleting the processing instruction and the first instruction of the multimedia data if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue; the wait queue includes generated, to-be-executed instructions.
Optionally, the method further comprises:
if the first instruction of the multimedia data is not present in the waiting queue and the processing instruction of the multimedia data are different, adding the processing instruction of the multimedia data to a resource pool of the second instruction of the multimedia data when the second instruction of the multimedia data is not present in the execution queue and the processing instruction of the multimedia data is identical, wherein the execution queue comprises the generated and executing instruction, the resource pool of the second instruction of the multimedia data is contained in the execution queue, and the resource pool of the second instruction of the multimedia data comprises the same instruction as the second instruction of the multimedia data.
Optionally, the method further comprises:
when it is determined that the second instruction of the multimedia data exists in the execution queue is different from the processing instruction of the multimedia data, or the second instruction of the multimedia data does not exist in the execution queue is identical to the processing instruction of the multimedia data, if the first instruction of the multimedia data exists in the waiting queue is identical to the processing instruction of the multimedia data, the processing instruction of the multimedia data is added into a resource pool where the first instruction of the multimedia data exists, the resource pool where the first instruction of the multimedia data exists is contained in the waiting queue, and the resource pool where the first instruction of the multimedia data exists includes the same instruction as the first instruction of the multimedia data;
if the first instruction of the multimedia data does not exist in the waiting queue and the processing instruction of the multimedia data are the same, a new resource pool is created in the waiting queue, and the processing instruction of the multimedia data is added into the new resource pool.
Optionally, the processing instruction for generating the multimedia data includes:
Generating a processing instruction of the multimedia data, and generating a first identifier and a second identifier corresponding to the processing instruction of the multimedia data; the first identifier is used for indicating loading the multimedia data, and the second identifier is used for indicating deleting the multimedia data;
and if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue, deleting the processing instruction and the first instruction of the multimedia data, wherein the method comprises the following steps:
and deleting the processing instruction and the first instruction of the multimedia data if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data.
Optionally, if the first instruction of the multimedia data exists in the waiting queue and the processing instruction of the multimedia data are the same, adding the processing instruction of the multimedia data to a resource pool where the first instruction of the multimedia data exists, including:
And if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data, or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data, adding the processing instruction of the multimedia data into a resource pool where the first instruction of the multimedia data exists.
Optionally, the method further comprises:
after the processing instruction of the multimedia data is added into the waiting queue, when the waiting queue is determined to meet the preset buffer condition, the instruction included in the waiting queue is moved into the execution queue.
Optionally, the preset buffer condition is that the time of adding the instruction reaches a preset time period, or the number of the resource pools included in the waiting queue reaches a preset value.
Optionally, the moving the instruction included in the waiting queue to the execution queue includes:
copying the resource pool included in the waiting queue into the execution queue, and deleting the resource pool included in the waiting queue.
Optionally, after moving the instruction included in the waiting queue to the execution queue, the method further includes:
merging the N instructions to obtain an aggregation instruction; n is an integer greater than 1, the N instructions are respectively from N resource pools, and the N resource pools are resource pools in the resource pools copied from the waiting queue to the execution queue;
and executing the operation corresponding to each instruction in the N instructions included in the aggregation instruction by calling a native system.
According to a second aspect of the present disclosure, there is provided an instruction processing apparatus, applied to a terminal, including:
a generation module configured to perform processing instructions for generating multimedia data in response to a triggering operation on the multimedia data; the processing instruction is a loading instruction or a release instruction, the loading instruction is used for indicating the loading of the multimedia data, and the release instruction is used for indicating the deletion of the successfully loaded multimedia data;
a deletion module configured to execute a processing instruction and a first instruction of the multimedia data if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in a waiting queue; the wait queue includes generated, to-be-executed instructions.
Optionally, the instruction processing apparatus further includes: adding a module;
the adding module is configured to execute the process instruction of the multimedia data to a resource pool where the second instruction of the multimedia data is located when it is determined that the second instruction of the multimedia data is not present in the execution queue and the second instruction of the multimedia data is identical to the process instruction of the multimedia data if the first instruction of the multimedia data is not present in the waiting queue and the process instruction of the multimedia data are different, the execution queue includes the generated and executing instructions, the resource pool where the second instruction of the multimedia data is located is included in the execution queue, and the resource pool where the second instruction of the multimedia data is located includes the same instructions as the second instruction of the multimedia data.
Optionally, the instruction processing apparatus further includes: creating a module;
the adding module is further configured to execute, when it is determined that the second instruction of the multimedia data exists in the execution queue is different from the processing instruction of the multimedia data, or the second instruction of the multimedia data does not exist in the execution queue is identical to the processing instruction of the multimedia data, if the first instruction of the multimedia data exists in the waiting queue is identical to the processing instruction of the multimedia data, adding the processing instruction of the multimedia data to a resource pool where the first instruction of the multimedia data exists, wherein the resource pool where the first instruction of the multimedia data exists is included in the waiting queue, and the resource pool where the first instruction of the multimedia data exists includes the same instruction as the first instruction of the multimedia data;
The creation module is configured to create a new resource pool in the waiting queue if the first instruction of the multimedia data which does not exist in the waiting queue is the same as the processing instruction of the multimedia data; the adding module is further configured to perform adding processing instructions of the multimedia data to the new resource pool.
Optionally, the generating module is specifically configured to perform:
generating a processing instruction of the multimedia data, and generating a first identifier and a second identifier corresponding to the processing instruction of the multimedia data; the first identifier is used for indicating loading the multimedia data, and the second identifier is used for indicating deleting the multimedia data;
the deletion module is specifically configured to perform:
and deleting the processing instruction and the first instruction of the multimedia data if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data.
Optionally, the adding module is specifically configured to perform:
and if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data, or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data, adding the processing instruction of the multimedia data into a resource pool where the first instruction of the multimedia data exists.
Optionally, the instruction processing apparatus further includes: a mobile module;
and the moving module is configured to move the instructions included in the waiting queue into the execution queue when the waiting queue is determined to meet the preset buffer condition after the processing instructions of the multimedia data are added into the waiting queue.
Optionally, the preset buffer condition is that the time of adding the instruction reaches a preset time period, or the number of the resource pools included in the waiting queue reaches a preset value.
Optionally, the mobile module is specifically configured to perform:
Copying the resource pool included in the waiting queue into the execution queue, and deleting the resource pool included in the waiting queue.
Optionally, the instruction processing apparatus further includes: the merging module and the executing module;
the merging module is configured to execute merging of the N instructions to obtain an aggregation instruction; n is an integer greater than 1, the N instructions are respectively from N resource pools, and the N resource pools are resource pools in the resource pools copied from the waiting queue to the execution queue;
the execution module is configured to execute an operation corresponding to each instruction in the N instructions included in the aggregation instruction by calling a native system.
According to a third aspect of the present disclosure, there is provided a terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement any of the above-described alternative instruction processing methods of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having instructions stored thereon which, when executed by a processor of a terminal, enable the terminal to perform any one of the above-mentioned alternative instruction processing methods of the first aspect.
According to a fifth aspect of the present disclosure there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of optionally processing instructions as any of the first aspects.
The technical scheme provided by the disclosure at least brings the following beneficial effects: the instruction processing device responds to the triggering operation of the multimedia data to generate a processing instruction of the multimedia data, wherein the processing instruction is a loading instruction or a releasing instruction, the loading instruction is used for indicating the loading of the multimedia data, the releasing instruction is used for indicating the deleting of the successfully loaded multimedia data, if a first instruction of the multimedia data is different from the processing instruction of the multimedia data in a waiting queue, the processing instruction and the first instruction of the multimedia data are deleted, and the waiting queue comprises the generated and to-be-executed instructions. After an instruction buffer mechanism is adopted to generate a processing instruction of the multimedia data, whether a first instruction of the multimedia data is different from the processing instruction of the multimedia data exists in a waiting queue is judged, and if the first instruction and the processing instruction exist, the first instruction and the processing instruction are deleted, namely the operations corresponding to the two instructions are not executed. Therefore, under the condition that the multimedia data is pictures, a user looks over a large number of pictures and slides quickly, for any picture which slides quickly through a screen in the middle, a loading instruction of a certain picture which is generated earlier is eliminated by a release instruction of the picture which is generated later, the picture can not be loaded and deleted, CPU resources of a terminal are greatly saved, the running smoothness of the terminal is improved, and therefore user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow chart illustrating a method of instruction processing according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another instruction processing method according to an example embodiment.
FIG. 3 is a flowchart illustrating another instruction processing method according to an example embodiment.
Fig. 4 is a block diagram showing a logical structure of an instruction processing apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram of a logic structure of another instruction processing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
First, an application scenario of the embodiment of the present disclosure will be described.
The instruction processing method provided by the embodiment of the disclosure is applied to a scene that a terminal loads or releases a large amount of multimedia data. Wherein, the multimedia data can be pictures, audio, video, etc. For example, when the multimedia data is a picture, if the user browses a large number of pictures on the web page of the terminal and slides quickly, in the related art, for any picture appearing in the screen, the Flutter of the terminal will call the native system to load the picture, and when the picture slides out from the screen, call the native system to delete the picture. Therefore, CPU resources of the terminal are wasted, so that the running speed of the terminal is low, and the user experience is affected. In order to solve the above-mentioned problems, the embodiments of the present disclosure provide an instruction processing method and apparatus, by adopting an instruction buffering mechanism, after a processing instruction of multimedia data is generated, if it is determined that a first instruction of the multimedia data in a waiting queue is different from the processing instruction of the multimedia data, the two different instructions are deleted, that is, operations corresponding to the two instructions are not executed, so that CPU resources of a terminal are greatly saved, and operation smoothness of the terminal is improved.
Next, an instruction processing method provided by an embodiment of the present disclosure will be described in detail.
Fig. 1 is a flowchart illustrating a method of instruction processing, which may include steps 101-102 when applied to a terminal, as shown in fig. 1, according to an exemplary embodiment.
101. And responding to the triggering operation of the multimedia data, and generating processing instructions of the multimedia data.
The processing instruction may be a loading instruction or a release instruction, where the loading instruction is used to instruct loading of multimedia data, and the multimedia data may be loaded from a corresponding server, or the multimedia data may be obtained from a terminal hard disk. The release instruction is used for indicating that the successfully loaded multimedia data is deleted.
Alternatively, in the embodiment of the present disclosure, the multimedia data may be pictures, audio, video, and the like.
For example, assuming that the multimedia data is a picture, the terminal may generate a load instruction of the picture in response to a user's viewing operation of the picture. Or, the terminal may generate a release instruction of a certain picture in response to an operation of the user to slide out of the screen.
Optionally, in an embodiment of the present disclosure, a processing instruction for generating multimedia data by a terminal is specifically implemented as: the terminal generates a processing instruction of the multimedia data and generates a first identifier and a second identifier corresponding to the processing instruction of the multimedia data. Wherein the first identifier is used for indicating loading the multimedia data, and the second identifier is used for indicating deleting the multimedia data. And if the values of the first identifiers corresponding to the two instructions are the same, and the values of the corresponding second identifiers are the same, the two instructions are the same instruction of the same multimedia data, possibly a loading instruction of the same multimedia data, and possibly a deleting instruction of the same multimedia data. If the value of the first identifier corresponding to one instruction is the same as the value of the second identifier corresponding to the other instruction in the two instructions, and the value of the second identifier corresponding to one instruction is the same as the value of the first identifier corresponding to the other instruction, the two instructions are different instructions of the same multimedia data, namely one instruction is a loading instruction of the multimedia data, and the other instruction is a release instruction of the multimedia data. If the value of the first identifier corresponding to one instruction is different from the value of the first identifier corresponding to the other instruction in the two instructions, and the value of the first identifier corresponding to one instruction is also different from the value of the second identifier corresponding to the other instruction, the two instructions are indicated to be the instructions of different multimedia data. Therefore, by comparing the value of the first identifier corresponding to the instruction with the value of the second identifier, the relation between the instructions can be obtained without analyzing the specific content of the instructions, the processing efficiency of the instructions can be improved, and the operation smoothness of the terminal is improved.
102. If the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue, deleting the processing instruction and the first instruction of the multimedia data.
Wherein the wait queue includes instructions that have been generated and are to be executed. After generating the processing instruction of the multimedia data, the terminal may determine whether the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue. If the multimedia data exists, one of the first instruction and the processing instruction is used for loading the multimedia data, and the other is used for deleting the multimedia data, at the moment, the terminal can delete the first instruction and the processing instruction of the multimedia data, namely, the operation corresponding to the first execution and processing instruction is not executed.
Optionally, in the embodiment of the present disclosure, in a case where the terminal generates the first identifier and the second identifier corresponding to the processing instruction of the multimedia data, if the value of the first identifier corresponding to the first instruction in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction, or if the value of the second identifier corresponding to the first instruction in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction, the terminal may determine that the first instruction in the waiting queue in which the multimedia data exists is different from the processing instruction of the multimedia data. Otherwise, the terminal determines that the situation that the first instruction of the multimedia data is different from the processing instruction of the multimedia data does not exist in the waiting queue.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the instruction processing device responds to the triggering operation of the multimedia data to generate a processing instruction of the multimedia data, wherein the processing instruction is a loading instruction or a releasing instruction, the loading instruction is used for indicating the loading of the multimedia data, the releasing instruction is used for indicating the deleting of the successfully loaded multimedia data, if a first instruction of the multimedia data is different from the processing instruction of the multimedia data in a waiting queue, the processing instruction and the first instruction of the multimedia data are deleted, and the waiting queue comprises the generated and to-be-executed instructions. After an instruction buffer mechanism is adopted to generate a processing instruction of the multimedia data, whether a first instruction of the multimedia data is different from the processing instruction of the multimedia data exists in a waiting queue is judged, and if the first instruction and the processing instruction exist, the first instruction and the processing instruction are deleted, namely the operations corresponding to the two instructions are not executed. Therefore, under the condition that the multimedia data is pictures, a user looks over a large number of pictures and slides quickly, for any picture which slides quickly through a screen in the middle, a loading instruction of a certain picture which is generated earlier is eliminated by a release instruction of the picture which is generated later, the picture can not be loaded and deleted, CPU resources of a terminal are greatly saved, the running smoothness of the terminal is improved, and therefore user experience is improved.
Optionally, in the step 102, if the first instruction of the multimedia data does not exist in the waiting queue and the processing instruction of the multimedia data are different, as shown in fig. 2 in conjunction with fig. 1, the instruction processing method provided in the embodiment of the present disclosure may further include steps 103 to 107.
103. If the first instruction of the multimedia data which does not exist in the waiting queue is different from the processing instruction of the multimedia data, judging whether the second instruction of the multimedia data which does not exist in the execution queue is different from the processing instruction of the multimedia data, and judging whether the second instruction of the multimedia data which exists in the execution queue is identical to the processing instruction of the multimedia data.
If the first instruction of the waiting queue without the multimedia data is different from the processing instruction of the multimedia data, the terminal can judge whether the second instruction of the execution queue without the multimedia data is different from the processing instruction of the multimedia data, and judge whether the second instruction of the execution queue with the multimedia data is the same as the processing instruction of the multimedia data. If yes, it is determined that the second instruction in the execution queue in which the multimedia data does not exist is different from the processing instruction of the multimedia data, and the second instruction in the execution queue in which the multimedia data exists is the same as the processing instruction of the multimedia data, the terminal may execute the following step 104. If not, it is determined that the second instruction of the execution queue in which the multimedia data exists is different from the processing instruction of the multimedia data, or the second instruction of the execution queue in which the multimedia data does not exist is the same as the processing instruction of the multimedia data, that is, three cases are included: 1. determining that a second instruction in the execution queue for the multimedia data is different from a processing instruction of the multimedia data, and that a second instruction in the execution queue for the multimedia data is not present is the same as the processing instruction of the multimedia data; 2. determining that a second instruction of the multimedia data exists in the execution queue is different from a processing instruction of the multimedia data, and the second instruction of the multimedia data exists in the execution queue is the same as the processing instruction of the multimedia data; 3. if it is determined that the second instruction in the execution queue in which the multimedia data does not exist is different from the processing instruction of the multimedia data, and the second instruction in the execution queue in which the multimedia data does not exist is identical to the processing instruction of the multimedia data, the terminal may perform the following step 105.
Optionally, in the embodiment of the present disclosure, when determining that the value of the first identifier corresponding to the second instruction in which the multimedia data exists in the execution queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data, or determining that the value of the second identifier corresponding to the second instruction in which the multimedia data exists in the execution queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data, the terminal may determine that the second instruction in which the multimedia data exists in the execution queue is the same as the processing instruction of the multimedia data. Otherwise, the terminal determines that the condition that the second instruction of the multimedia data is the same as the processing instruction of the multimedia data does not exist in the execution queue.
Optionally, in the embodiment of the present disclosure, a specific manner in which the terminal determines whether the second instruction is different from the processing instruction in the execution queue is the same as a specific manner in which the terminal determines whether the first instruction is different from the processing instruction in the waiting queue in step 102 in another embodiment, and a specific description in which the terminal determines whether the second instruction is different from the processing instruction in the execution queue may refer to the related description in step 102, which is not repeated herein.
104. And adding the processing instruction of the multimedia data into a resource pool where a second instruction of the multimedia data is located.
Wherein the execution queue includes instructions that have been generated and are executing. The resource pool where the second instruction of the multimedia data is located is contained in the execution queue, and the resource pool where the second instruction of the multimedia data is located includes the same instruction as the second instruction of the multimedia data.
105. And judging whether the first instruction of the multimedia data exists in the waiting queue is the same as the processing instruction of the multimedia data.
When the terminal determines that the second instruction of the multimedia data in the execution queue is different from the processing instruction of the multimedia data, or the second instruction of the multimedia data in the execution queue is not identical to the processing instruction of the multimedia data, the terminal may determine whether the first instruction of the multimedia data in the waiting queue is identical to the processing instruction of the multimedia data. If yes, i.e. it is determined that the first instruction for the presence of multimedia data in the waiting queue is identical to the processing instruction for the multimedia data, the terminal may perform the following step 106. If not, i.e. it is determined that the first instruction for the absence of multimedia data in the waiting queue is identical to the processing instruction for the multimedia data, the terminal may perform the following step 107.
Optionally, in the embodiment of the present disclosure, a specific manner in which the terminal determines whether the first instruction of the multimedia data exists in the waiting queue is the same as the processing instruction of the multimedia data is the same as the manner in which the terminal determines whether the second instruction of the multimedia data exists in the execution queue is the same as the processing instruction of the multimedia data in the above step 103, and a specific description in which the terminal determines whether the first instruction of the multimedia data exists in the waiting queue is the same as the processing instruction of the multimedia data may refer to the related description in step 103, which is not repeated herein.
106. And adding the processing instruction of the multimedia data into a resource pool where the first instruction of the multimedia data is located.
The resource pool of the first instruction of the multimedia data is contained in the waiting queue, and the resource pool of the first instruction of the multimedia data comprises the same instruction as the first instruction of the multimedia data.
107. Creating a new resource pool in the waiting queue, and adding processing instructions of the multimedia data to the new resource pool.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the processing instructions are added in place to place the same instructions in a resource pool by determining in the execution queue whether there are instructions that are the same as or different from the processing instructions of the multimedia data, and determining in the waiting queue whether there are instructions that are the same as the processing instructions of the multimedia data. Thus, since the operations corresponding to the instructions included in each resource pool are the same, the terminal can only execute the operation corresponding to one instruction in each resource pool, and compared with the operation corresponding to each instruction executed in the related art, the CPU resource of the terminal is greatly saved.
When determining that the first instruction of the multimedia data is not different from the processing instruction of the multimedia data in the waiting queue, the terminal firstly judges whether the first instruction is the same as or different from the processing instruction of the multimedia data in the execution queue, and only adds the processing instruction into a resource pool where the first instruction is the same as the processing instruction in the execution queue when determining that the first instruction is the same as the processing instruction in the execution queue, but no instruction opposite to the processing instruction is present. Since the execution sequence of the instructions may be destroyed if the processing instruction is added to the execution queue in the case where the same instruction as the processing instruction exists in the execution queue and an instruction opposite to the processing instruction exists. For example, if there is a load instruction and a release instruction of a picture in the execution queue, and the processing instruction is a reload instruction of the picture, then adding the reload instruction to the resource pool where the load instruction is located in the execution queue in this case will result in a process of not exhibiting reload, so as to destroy the execution sequence of the instructions, and therefore in this case, it is necessary to add the processing instruction to the waiting queue. However, in both cases where there is no instruction identical to the processing instruction in the execution queue and there is no instruction opposite to the processing instruction in the execution queue, but there is no instruction identical to the processing instruction in the execution queue, it is necessary to add the processing instruction to the waiting queue because there is no instruction identical to the processing instruction in the execution queue.
Secondly, the terminal adds the processing instruction to a proper position in the waiting queue by judging whether the same instruction as the processing instruction exists in the waiting queue or not under the condition that the opposite instruction or the same instruction as the processing instruction does not exist in the execution queue.
Optionally, in the embodiment of the present disclosure, after the step 106 or the step 107 is performed, that is, after adding the processing instruction to the waiting queue, the terminal may move the instruction buffered in the waiting queue to the execution queue when determining that the waiting queue meets the preset buffering condition, and perform an operation corresponding to the moved instruction.
Referring to fig. 2, as shown in fig. 3, after the above step 106 or step 107 is performed, the instruction processing method provided by the embodiment of the present disclosure may further include the following steps 108 to 110.
108. And when the waiting queue is determined to meet the preset buffer condition, moving the instruction included in the waiting queue into the execution queue.
Optionally, in an embodiment of the present disclosure, the preset buffer condition may be that a time of adding the instruction reaches a preset period. Alternatively, the preset buffer condition may be that the number of resource pools included in the waiting queue reaches a preset value.
Alternatively, in an embodiment of the disclosure, the wait queue and the execution queue may each include a plurality of resource pools, each of which is used to store the same instruction of the same multimedia data. In this case, the terminal moves the instruction included in the waiting queue to the execution queue, and the specific process is: and the terminal copies the resource pool included in the waiting queue into the execution queue, and deletes the resource pool included in the waiting queue.
109. And merging the N instructions to obtain an aggregation instruction.
Wherein N is an integer greater than 1. The N instructions are respectively from N resource pools, wherein the N resource pools are the resource pools in the resource pools copied from the waiting queue to the execution queue.
After copying the resource pools of the waiting queue to the execution queue, the terminal can determine N resource pools from the copied resource pools, and then take one instruction from the N resource pools to combine to obtain an aggregation instruction comprising N instructions.
110. And executing the operation corresponding to each instruction in the N instructions included in the aggregation instruction by calling the native system.
The technical scheme provided by the embodiment at least brings the following beneficial effects: after the generated processing instructions are added to the waiting queue, the instructions are moved from the waiting queue to the execution queue until the preset buffer condition is met, so that the instructions can be orderly and reasonably executed, the execution of a plurality of unnecessary instructions is reduced, and the CPU (Central processing Unit) resources of the terminal are saved. And after the instructions in the execution queue are combined, the router sends the combined N instructions to the original system, so that the interaction times of the router and the original system can be reduced, and the execution efficiency of the instructions is improved.
For example, assuming that multimedia data is a picture, an application scene is that a user browses a picture list on a terminal and quickly slides from a first to a last. And assuming that the length of the picture list is 500 pictures, the screen of the terminal may simultaneously display 15 pictures.
In the related art, since the pictures are immediately loaded and released, 500 pictures are loaded and 485 pictures are released (500 minus the number of pictures that the screen can display) in the whole process. Since some pictures in the middle may have been slipped before being displayed, the user does not actually see the pictures, but the pictures are loaded and released, so that CPU resources of the terminal are wasted, a clamping phenomenon of the terminal is caused, and the user experience is affected.
However, with the solution of the present disclosure, through actual testing, assuming that the preset time period is 20ms, the whole process Flutter may send 30 requests to the native system, each request including 20 instructions, 10 load instructions and 10 release instructions, respectively. That is, 300 pictures may be loaded in total and 300 pictures released. For the middle quick-slide section, no loading and no release is performed. Therefore, CPU resources of the terminal are greatly saved, and user experience is improved. It should be noted that, in the embodiment of the present disclosure, according to different sliding speeds of the user, actual data may fluctuate, and the preset conditions may be adjusted according to application scenarios.
Fig. 4 is a block diagram showing a logical structure of an instruction processing apparatus according to an exemplary embodiment. As shown in fig. 4, the instruction processing apparatus is applied to a terminal, and the instruction processing apparatus includes: a generation module 21 and a deletion module 22.
A generation module 21 configured to execute processing instructions for generating multimedia data in response to a trigger operation on the multimedia data; the processing instruction is a loading instruction or a release instruction, the loading instruction is used for indicating the loading of the multimedia data, and the release instruction is used for indicating the deletion of the successfully loaded multimedia data;
a deletion module 22 configured to execute a process instruction and a first instruction of the multimedia data if the first instruction of the multimedia data is different from the process instruction of the multimedia data in the waiting queue; the wait queue includes generated, to-be-executed instructions.
Optionally, as shown in fig. 5, the instruction processing apparatus further includes: an adding module 23;
the adding module 23 is configured to execute adding the processing instruction of the multimedia data to a resource pool where the second instruction of the multimedia data is located when it is determined that the second instruction of the multimedia data is not present in the execution queue and the second instruction of the multimedia data is identical to the processing instruction of the multimedia data if the first instruction of the multimedia data is not present in the waiting queue and the processing instruction of the multimedia data are different, the execution queue including the generated and executing instruction, the resource pool where the second instruction of the multimedia data is located being included in the execution queue, the resource pool where the second instruction of the multimedia data is located including the same instruction as the second instruction of the multimedia data.
Optionally, as shown in fig. 5, the instruction processing apparatus further includes: a creation module 24;
the adding module 23 is further configured to execute, when it is determined that the second instruction in the execution queue in which the multimedia data exists is different from the processing instruction of the multimedia data, or that the second instruction in the execution queue in which the multimedia data does not exist is identical to the processing instruction of the multimedia data, if the first instruction in the waiting queue in which the multimedia data exists is identical to the processing instruction of the multimedia data, adding the processing instruction of the multimedia data to a resource pool in which the first instruction of the multimedia data exists, the resource pool in which the first instruction of the multimedia data exists being included in the waiting queue, the resource pool in which the first instruction of the multimedia data exists including the same instruction as the first instruction of the multimedia data;
the creation module 24 is configured to create a new resource pool in the waiting queue if the first instruction that the multimedia data does not exist in the waiting queue is the same as the processing instruction of the multimedia data; the adding module 23 is further configured to perform adding processing instructions of the multimedia data to the new resource pool.
Optionally, the generating module 21 is specifically configured to perform:
generating a processing instruction of the multimedia data, and generating a first identifier and a second identifier corresponding to the processing instruction of the multimedia data; the first identifier is used for indicating loading the multimedia data, and the second identifier is used for indicating deleting the multimedia data;
the deletion module 22 is specifically configured to perform:
and deleting the processing instruction and the first instruction of the multimedia data if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data.
Optionally, the adding module 23 is specifically configured to perform:
and if the value of the first identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the first identifier corresponding to the processing instruction of the multimedia data, or the value of the second identifier corresponding to the first instruction of the multimedia data exists in the waiting queue is the same as the value of the second identifier corresponding to the processing instruction of the multimedia data, adding the processing instruction of the multimedia data into a resource pool where the first instruction of the multimedia data exists.
Optionally, as shown in fig. 5, the instruction processing apparatus further includes: a movement module 25;
the moving module 25 is configured to move an instruction included in the waiting queue into the execution queue when determining that the waiting queue meets a preset buffer condition after adding a processing instruction of the multimedia data into the waiting queue.
Optionally, the preset buffer condition is that the time of adding the instruction reaches a preset time period, or the number of the resource pools included in the waiting queue reaches a preset value.
Optionally, the mobile module 25 is specifically configured to perform:
copying the resource pool included in the waiting queue into the execution queue, and deleting the resource pool included in the waiting queue.
Optionally, as shown in fig. 5, the instruction processing apparatus further includes: a merging module 26 and an execution module 27;
the merging module 26 is configured to perform merging of the N instructions to obtain an aggregate instruction; n is an integer greater than 1, the N instructions are respectively from N resource pools, and the N resource pools are resource pools in the resource pools copied from the waiting queue to the execution queue;
the execution module 27 is configured to execute an operation corresponding to each of N instructions included in the aggregate instruction by calling a native system.
Fig. 6 is a block diagram illustrating a structure of a terminal, which may be an instruction processing apparatus, according to an exemplary embodiment, which may be: smart phones, tablet computers, notebook computers or desktop computers.
The instruction processing apparatus may comprise at least one processor 31, a communication bus 32, a memory 33 and at least one communication interface 34.
The processor 31 may be a CPU, microprocessor, ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present disclosure.
Communication bus 32 may include a path to transfer information between the aforementioned components.
The communication interface 34 uses any transceiver-like means for communicating with other devices or communication networks, such as servers, ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
The memory 33 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be stand alone and be connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
Wherein the memory 33 is used for storing application program codes for executing the disclosed scheme and is controlled to be executed by the processor 31. The processor 31 is operative to execute application code stored in the memory 33 to thereby implement the functions in the methods of the present disclosure.
In a particular implementation, as one embodiment, processor 31 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 6.
In a specific implementation, as an embodiment, the instruction processing apparatus may include a plurality of processors, such as the processor 31 and the processor 35 in fig. 6. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, as an embodiment, the instruction processing apparatus may further include an input device 36 and an output device 37. The input device 36 communicates with the processor 37 and may accept user input in a variety of ways. For example, the input device 36 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like. The output device 37 communicates with the processor 31 and may display information in a variety of ways. For example, the output device 31 may be a liquid crystal display (1iquid crystal display,LCD), a light emitting diode (1ight emitting diode,LED) display device, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present disclosure also provides a computer-readable storage medium including instructions stored thereon, which when executed by a processor of a computer device, enable the computer to perform the instruction processing method provided by the above-described illustrated embodiments. For example, the computer readable storage medium may be a memory 33 comprising instructions executable by the processor 31 of the terminal to perform the above-described method. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
The present disclosure also provides a computer program product containing instructions which, when run on a computer, cause the computer device to perform the instruction processing method provided by the above-described illustrated embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An instruction processing method applied to a terminal, characterized in that the method comprises the following steps:
responding to triggering operation of multimedia data, and generating a processing instruction of the multimedia data; the processing instruction is a loading instruction or a release instruction, the loading instruction is used for indicating the loading of the multimedia data, and the release instruction is used for indicating the deletion of the successfully loaded multimedia data;
Deleting the processing instruction and the first instruction of the multimedia data if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in the waiting queue; the waiting queue comprises generated and to-be-executed instructions;
if the first instruction of the multimedia data is not different from the processing instruction of the multimedia data in the waiting queue, determining that the second instruction of the multimedia data is not different from the processing instruction of the multimedia data in an execution queue, and when the second instruction of the multimedia data is the same as the processing instruction of the multimedia data in the execution queue, adding the processing instruction of the multimedia data into a resource pool where the second instruction of the multimedia data is located, wherein the execution queue comprises generated and executing instructions, the resource pool where the second instruction of the multimedia data is located is contained in the execution queue, and the resource pool where the second instruction of the multimedia data is located comprises the same instructions as the second instruction of the multimedia data;
and if the first instruction of the multimedia data in the waiting queue is the same as the processing instruction of the multimedia data, adding the processing instruction of the multimedia data into a resource pool where the first instruction of the multimedia data is located, wherein the resource pool where the first instruction of the multimedia data is contained in the waiting queue, and the resource pool where the first instruction of the multimedia data is located comprises the same instruction as the first instruction of the multimedia data.
2. The instruction processing method according to claim 1, characterized in that the method further comprises:
if the first instruction of the multimedia data does not exist in the waiting queue and the processing instruction of the multimedia data are the same, a new resource pool is created in the waiting queue, and the processing instruction of the multimedia data is added into the new resource pool.
3. The instruction processing method according to claim 2, characterized in that the method further comprises:
after the processing instruction of the multimedia data is added into the waiting queue, when the waiting queue is determined to meet the preset buffer condition, the instruction included in the waiting queue is moved into the execution queue.
4. A method according to claim 3, wherein the predetermined buffer condition is that a time to add an instruction reaches a predetermined period of time, or that the number of resource pools included in the waiting queue reaches a predetermined value.
5. The method of claim 4, wherein moving the instructions included in the wait queue into the execution queue comprises:
copying the resource pool included in the waiting queue into the execution queue, and deleting the resource pool included in the waiting queue.
6. The instruction processing method of claim 5, wherein after moving the instructions included in the wait queue to the execution queue, the method further comprises:
merging the N instructions to obtain an aggregation instruction; n is an integer greater than 1, the N instructions are respectively from N resource pools, and the N resource pools are resource pools in the resource pools copied from the waiting queue to the execution queue;
and executing the operation corresponding to each instruction in the N instructions included in the aggregation instruction by calling a native system.
7. An instruction processing apparatus, applied to a terminal, characterized by comprising:
a generation module configured to perform processing instructions for generating multimedia data in response to a triggering operation on the multimedia data; the processing instruction is a loading instruction or a release instruction, the loading instruction is used for indicating the loading of the multimedia data, and the release instruction is used for indicating the deletion of the successfully loaded multimedia data;
a deletion module configured to execute a processing instruction and a first instruction of the multimedia data if the first instruction of the multimedia data is different from the processing instruction of the multimedia data in a waiting queue; the waiting queue comprises generated and to-be-executed instructions;
Adding a module; the adding module is configured to execute the process instruction of the multimedia data to a resource pool where the second instruction of the multimedia data is located when the first instruction of the multimedia data is not present in the waiting queue and the process instruction of the multimedia data are different, and the second instruction of the multimedia data is not present in the execution queue and the process instruction of the multimedia data are the same, the execution queue comprises the generated and executing instructions, the resource pool where the second instruction of the multimedia data is contained in the execution queue, and the resource pool where the second instruction of the multimedia data is located comprises the same instructions as the second instruction of the multimedia data;
the adding module is further configured to re-determine that the second instruction of the multimedia data exists in the execution queue is different from the processing instruction of the multimedia data, or when the second instruction of the multimedia data does not exist in the execution queue is identical to the processing instruction of the multimedia data, if the first instruction of the multimedia data exists in the waiting queue is identical to the processing instruction of the multimedia data, the processing instruction of the multimedia data is added to a resource pool where the first instruction of the multimedia data exists, the resource pool where the first instruction of the multimedia data exists is contained in the waiting queue, and the resource pool where the first instruction of the multimedia data exists includes the same instruction as the first instruction of the multimedia data.
8. The instruction processing apparatus of claim 7, wherein the instruction processing apparatus further comprises: creating a module;
the creation module is configured to create a new resource pool in the waiting queue if the first instruction of the multimedia data which does not exist in the waiting queue is the same as the processing instruction of the multimedia data; the adding module is further configured to perform adding processing instructions of the multimedia data to the new resource pool.
9. The instruction processing apparatus of claim 8, wherein the instruction processing apparatus further comprises: a mobile module;
and the moving module is configured to move the instructions included in the waiting queue into the execution queue when the waiting queue is determined to meet the preset buffer condition after the processing instructions of the multimedia data are added into the waiting queue.
10. The instruction processing apparatus according to claim 9, wherein the predetermined buffer condition is that a time to add an instruction reaches a predetermined period of time or that a number of resource pools included in the waiting queue reaches a predetermined value.
11. The instruction processing apparatus according to claim 10, wherein the mobile module is specifically configured to perform:
Copying the resource pool included in the waiting queue into the execution queue, and deleting the resource pool included in the waiting queue.
12. The instruction processing apparatus according to claim 11, wherein the instruction processing apparatus further comprises: the merging module and the executing module;
the merging module is configured to execute merging of the N instructions to obtain an aggregation instruction; n is an integer greater than 1, the N instructions are respectively from N resource pools, and the N resource pools are resource pools in the resource pools copied from the waiting queue to the execution queue;
the execution module is configured to execute an operation corresponding to each instruction in the N instructions included in the aggregation instruction by calling a native system.
13. A terminal, the terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the instruction processing method of any of claims 1-6.
14. A computer readable storage medium having instructions stored thereon, which, when executed by a processor of a terminal, enable the terminal to perform the instruction processing method of any of claims 1-6.
CN202010286754.3A 2020-04-13 2020-04-13 Instruction processing method and device Active CN111427654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010286754.3A CN111427654B (en) 2020-04-13 2020-04-13 Instruction processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010286754.3A CN111427654B (en) 2020-04-13 2020-04-13 Instruction processing method and device

Publications (2)

Publication Number Publication Date
CN111427654A CN111427654A (en) 2020-07-17
CN111427654B true CN111427654B (en) 2023-05-30

Family

ID=71553989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010286754.3A Active CN111427654B (en) 2020-04-13 2020-04-13 Instruction processing method and device

Country Status (1)

Country Link
CN (1) CN111427654B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791777B (en) * 2020-07-28 2024-06-14 北京沃东天骏信息技术有限公司 Picture display method and device, computer readable storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893845A (en) * 2016-04-05 2016-08-24 北京金山安全软件有限公司 Data processing method and device
CN107368450A (en) * 2016-05-11 2017-11-21 国际商业机器公司 Realize the operation for the multiple-slice processor for safeguarding the load/store unit for being refused instruction
CN109683714A (en) * 2018-12-28 2019-04-26 北京小米移动软件有限公司 Multimedia resource management method, apparatus and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8639886B2 (en) * 2009-02-03 2014-01-28 International Business Machines Corporation Store-to-load forwarding mechanism for processor runahead mode operation
US10268482B2 (en) * 2015-12-15 2019-04-23 International Business Machines Corporation Multi-slice processor issue of a dependent instruction in an issue queue based on issue of a producer instruction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893845A (en) * 2016-04-05 2016-08-24 北京金山安全软件有限公司 Data processing method and device
CN107368450A (en) * 2016-05-11 2017-11-21 国际商业机器公司 Realize the operation for the multiple-slice processor for safeguarding the load/store unit for being refused instruction
CN109683714A (en) * 2018-12-28 2019-04-26 北京小米移动软件有限公司 Multimedia resource management method, apparatus and storage medium

Also Published As

Publication number Publication date
CN111427654A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US10901802B2 (en) Method and apparatus for implementing virtual GPU and system
US10325009B2 (en) Method and apparatus for using custom component parsing engine to parse tag of custom component
CN107832100B (en) APK plug-in loading method and terminal thereof
WO2018049888A1 (en) Application data migration method and device
US11474810B2 (en) Run-time application modification
US11360884B2 (en) Reserved memory in memory management system
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
CN110851285B (en) Resource multiplexing method, device and equipment based on GPU virtualization
US20230403437A1 (en) Graphics engine and graphics processing method applicable to player
WO2023098614A1 (en) Cloud instance capacity expansion/reduction method and related device therefor
CN111352647A (en) Virtual machine upgrading method, device, equipment and storage medium
WO2015179509A1 (en) High-performance computing framework for cloud computing environments
CN111427654B (en) Instruction processing method and device
CN112988062B (en) Metadata reading limiting method and device, electronic equipment and medium
CN108614697B (en) Background Dex compiling control method and device
CN108197029B (en) Method and device for acquiring process information
WO2020135129A1 (en) Method and device for loading plug-in of application, and terminal
CN111338803A (en) Thread processing method and device
CN112434235B (en) Webpage picture loading method and device, computer equipment and storage medium
US20180373512A1 (en) Method and device for simulating synchronous blocking in asynchronous environment, storage medium, server and terminal
CN111274211B (en) Application file storage method, device and system
CN113849686A (en) Video data acquisition method and device, electronic equipment and storage medium
CN113986451A (en) Virtual machine migration method and device, electronic equipment and storage medium
CN113778910A (en) Data cache processing method and device
CN114896011B (en) Method and device for playing dynamic content in page, electronic equipment and storage medium

Legal Events

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