CN116048646B - Process processing method and electronic equipment - Google Patents

Process processing method and electronic equipment Download PDF

Info

Publication number
CN116048646B
CN116048646B CN202210766462.9A CN202210766462A CN116048646B CN 116048646 B CN116048646 B CN 116048646B CN 202210766462 A CN202210766462 A CN 202210766462A CN 116048646 B CN116048646 B CN 116048646B
Authority
CN
China
Prior art keywords
page
application
pages
determining
pages corresponding
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
CN202210766462.9A
Other languages
Chinese (zh)
Other versions
CN116048646A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210766462.9A priority Critical patent/CN116048646B/en
Publication of CN116048646A publication Critical patent/CN116048646A/en
Application granted granted Critical
Publication of CN116048646B publication Critical patent/CN116048646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/445Program loading or initiating
    • G06F9/44594Unloading
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a process processing method and electronic equipment. The method comprises the following steps: when the first process needs to be killed, notifying to execute destruction operation on all pages corresponding to the first process; determining that all pages corresponding to the first process are completely destroyed; the first process is killed. Therefore, when the application needs to kill the current process, all pages corresponding to the destroying process are ensured to be destroyed, and then the operation of killing the process is executed, so that the screen of the electronic equipment is prevented from flashing pictures due to the killing process, the visual experience of a user is improved, and the use experience of the user is improved.

Description

Process processing method and electronic equipment
Technical Field
The present application relates to the field of terminal devices, and in particular, to a process processing method and an electronic device.
Background
In some scenarios, an application in an electronic device may have a need to kill its current process. When such a need is encountered, the current application directly performs the operation of killing the current process. The method for killing the progress can lead to a flickering picture on the screen of the electronic equipment, gives the visual perception of collapse and flash back to the user, and has poor use experience for the user.
Disclosure of Invention
In order to solve the technical problems, the application provides a process processing method and electronic equipment, which ensure that all pages corresponding to a destroying process are destroyed when an application needs to kill the current process, and then execute the operation of killing the process, so that a screen of the electronic equipment is prevented from flashing pictures due to the killing process, the visual experience of a user is improved, and the use experience of the user is improved.
In a first aspect, the present application provides a process processing method. The method is applied to the electronic equipment. The method comprises the following steps: when the first process needs to be killed, notifying to execute destruction operation on all pages corresponding to the first process; determining that all pages corresponding to the first process are completely destroyed; the first process is killed. Therefore, when the application needs to kill the current process, all pages corresponding to the destroying process are ensured to be destroyed, and then the operation of killing the process is executed, so that the screen of the electronic equipment is prevented from flashing pictures due to the killing process, the visual experience of a user is improved, and the use experience of the user is improved.
According to a first aspect, the scene requiring the first process to be killed includes any one of the following: an application to which a first process belongs receives an instruction for stopping service; an application to which a first process belongs receives a logout instruction; an instruction to cancel the start is received during the process of starting the application to which the first process belongs. Thus, any scene in which the first process needs to be killed appears, and the process processing method of the embodiment of the application can be started.
According to a first aspect, notifying that destruction operations are performed on all pages corresponding to a first process includes: and sending a first notification to each page in the page queue corresponding to the first process, wherein the first notification is used for indicating to execute destruction operation on the page. In this way, the page is informed to execute the destruction operation by sending the notification to each page separately.
According to a first aspect, determining that all pages corresponding to the first process have been completely destroyed includes: monitoring the destruction process of each page in the page queue corresponding to the first process; if the destroying process of all the pages in the page queue corresponding to the first process is monitored to be finished, determining that all the pages corresponding to the first process are completely destroyed. Therefore, by monitoring the destroying process of each page, whether all pages corresponding to the first process are completely destroyed or not can be accurately determined.
According to a first aspect, determining that all pages corresponding to the first process have been completely destroyed includes: monitoring whether a page queue corresponding to a first process is empty or not; if yes, determining that all pages corresponding to the first process are completely destroyed. Therefore, whether all pages corresponding to the first process are completely destroyed can be conveniently determined by monitoring whether the page queue is empty.
According to a first aspect, determining that all pages corresponding to the first process have been completely destroyed includes: judging whether a destruction response message returned by a page queue corresponding to the first process is received or not, wherein the destruction response message is used for indicating that all pages in the page queue are destroyed; if yes, determining that all pages corresponding to the first process are completely destroyed. Therefore, whether all pages corresponding to the first process are completely destroyed can be accurately determined through destroying the response message.
According to a first aspect, before killing the first process, further comprising: judging whether a page queue corresponding to the current first process is empty or not; if so, an operation is performed that kills the first process. Therefore, after all pages of the first process are destroyed, the first process can be killed, and the flickering picture of the screen of the electronic equipment is avoided.
According to the first aspect, before determining that all pages corresponding to the first process have been completely destroyed, the method further includes: receiving a first instruction for creating a page of an application to which a first process belongs; creating a first page according to a first instruction; and adding the first page into a page queue corresponding to the first process.
According to the first aspect, before determining that all pages corresponding to the first process have been completely destroyed, the method further includes: determining whether a second page in a page queue corresponding to the first process is destroyed; and if so, removing the second page from the page queue corresponding to the first process.
According to the first aspect, before notifying that the destruction operation is performed on all pages corresponding to the first process, the method further includes: determining whether a page queue corresponding to the current first process is empty or not; if not, executing the step of notifying to execute the destroying operation on all pages corresponding to the first process.
In a second aspect, the present application provides an electronic device comprising: a memory and a processor, the memory coupled to the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the process processing method of any one of the first aspects.
In a third aspect, the present application provides a computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform the process processing method according to any one of the preceding first aspects.
Drawings
Fig. 1 is a schematic structural diagram of an exemplary electronic device 100;
Fig. 2 is a software architecture block diagram of an electronic device 100 of an exemplary illustrated embodiment of the present application;
FIG. 3 is a flowchart illustrating an exemplary process handling method according to an embodiment of the present application;
FIG. 4 is another exemplary flowchart illustrating a process processing method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating still another exemplary process of the process processing method according to the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the application, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Currently, few applications have the need to kill their current processes. When such a demand is met, the current application directly kills the current process and directly executes the operation of killing the current process.
In general, a process has some non-closed page showing, if an operation of killing the process is performed under the condition that a page corresponding to the process is not closed, on a screen of the electronic device, the page corresponding to the process being shown will flash, instead of presenting a smooth page closing animation, which gives a user a feel like crashing flash, and has poor user experience.
The embodiment of the application provides a process processing method, which can avoid a screen of electronic equipment from collapsing and flashing back when a process is killed, and improves the use experience of a user.
The process processing method in the embodiment of the application can be applied to electronic equipment, such as smart phones, tablets and other electronic equipment. The structure of the electronic device may be as shown in fig. 1.
Fig. 1 is a schematic diagram of an exemplary illustrated electronic device 100. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
Referring to fig. 1, an electronic device 100 may include: processor 110, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, indicator 192, camera 193, etc.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android (Android) system with a layered architecture as an example, and illustrates a software structure of the electronic device 100.
Fig. 2 is a software structural block diagram of the electronic device 100 of the exemplary embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may include an application layer, an application framework layer, a system layer, a kernel layer, and the like.
The application layer may include a series of application packages.
As shown in fig. 2, the application packages of the application layer of the electronic device 100 may include applications of cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
When an application program of the application program layer has a need of killing a process of the application program layer, the application program layer can comprise a process processing module, and the process processing module is used for executing the process processing method of the embodiment of the application.
As shown in FIG. 2, the application framework layer may include applications such as a window manager, content provider, resource manager, view system, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
As shown in fig. 2, the system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. As shown in fig. 2, the kernel layer may include display drivers and the like.
It will be appreciated that the layers and components contained in the layers in the software structure shown in fig. 2 do not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
The present application will be described in detail with reference to examples.
Fig. 3 is a flowchart illustrating an exemplary process processing method according to an embodiment of the present application. As shown in fig. 3, in this embodiment, the process processing method is applied to an electronic device, such as a mobile phone, a tablet, and the like.
Referring to fig. 3, in this embodiment, the processing procedure of the process processing method may include the following steps:
S301, when the first process needs to be killed, notifying that destruction operations are executed on all pages corresponding to the first process.
In one example, a scenario requiring the first process to be killed may be:
An application to which the first process belongs receives an instruction to stop the service.
For example, assume herein that the application to which the first process belongs is application a. Before application a is used, application a provides a user agreement for the user to choose whether to agree. If the user selects to agree with the user protocol of the application A, the application A provides the service corresponding to the function of the application A for the user. If the user selects the user protocol which does not agree with the application A, the application A does not provide the service corresponding to the application A function for the user.
The user, after selecting a user agreement agreeing to application a, uses application a. Then, the user selects the user protocol which does not agree with the application A through the user protocol entry of the application A, and at this time, the application A receives an instruction for stopping the service. The application a receives the instruction to stop the service, and can determine that the process of the application a needs to be killed.
In another example, a scenario requiring the first process to be killed may be:
An application to which the first process belongs receives a logout instruction.
For example, application A receives a logoff instruction, it may determine that it is necessary to kill the process of application A.
In another example, a scenario requiring the first process to be killed may be:
an instruction to cancel the start is received during the process of starting the application to which the first process belongs.
For example, during the process of starting the application a, before the starting is completed, the application a receives an instruction to cancel the starting.
It should be noted that the foregoing is merely illustrative of the scenario requiring the first process to be killed, and is not intended to limit the scenario requiring the first process to be killed.
In one example, notifying that the destruction operation is performed on all pages corresponding to the first process may include:
And sending a first notification to each page in the page queue corresponding to the first process, wherein the first notification is used for indicating to execute destruction operation on the page.
For example, assuming that the page queue corresponding to the first process includes 3 pages of page 1, page 2, and page 3, the first notification may be given to page 1, page 2, and page 3, respectively. After the page 1, the page 2 and the page 3 receive the first notification, the operation of destroying the corresponding pages is executed according to the indication of the first notification.
Typically, each process corresponds to a page queue that includes all the pages of the process. Thus, in another example, a second notification may also be sent to the page queue corresponding to the first process, the second notification being used to indicate that the destruction operation is performed on all pages in the page queue.
In one example, before notifying that the destruction operation is performed on all pages corresponding to the first process, the method may further include:
Determining whether a page queue corresponding to the current first process is empty or not;
If not, namely the page queue corresponding to the current first process is not empty, executing the step of notifying all pages corresponding to the first process to execute destruction operation.
And if the page queue corresponding to the current first process is empty, directly executing the operation of killing the first process.
S302, determining that all pages corresponding to a first process are completely destroyed;
The method for determining that all the pages corresponding to the first process are destroyed completely may be various, and one of the methods may be adopted in specific implementation.
For example, in one example, determining that all pages corresponding to the first process have been completely destroyed may include:
monitoring the destruction process of each page in the page queue corresponding to the first process;
if the destroying process of all the pages in the page queue corresponding to the first process is monitored to be finished, determining that all the pages corresponding to the first process are completely destroyed.
If the fact that the destroying process of one or more pages in the page queue corresponding to the first process is not finished is monitored, it can be determined that all the pages corresponding to the first process are not completely destroyed.
In the embodiment, by monitoring the destruction process of each page, whether all pages corresponding to the first process are destroyed completely is determined, and the destruction condition of all pages corresponding to the first process can be accurately obtained, so as to judge whether the current time is the time for executing the operation of the destruction process.
In another example, determining that all pages corresponding to the first process have been completely destroyed may include:
Monitoring whether a page queue corresponding to a first process is empty or not;
If yes, determining that all pages corresponding to the first process are completely destroyed.
Pages which belong to the first process and are not destroyed are added into the page queue of the first process, so that the page queue corresponding to the first process is empty, and all pages corresponding to the first process are completely destroyed.
In another example, determining that all pages corresponding to the first process have been completely destroyed may include:
judging whether a destruction response message returned by a page queue corresponding to the first process is received or not, wherein the destruction response message is used for indicating that all pages in the page queue are destroyed;
If yes, determining that all pages corresponding to the first process are completely destroyed.
In this embodiment, a page queue executes a monitoring operation for destroying pages, and when the page queue monitors that all pages in the queue are destroyed, a destroy response message can be generated and returned. At this time, it may be determined according to the destruction response message that all pages corresponding to the first process have been completely destroyed.
Of course, the above is merely illustrative of a manner of determining whether all pages corresponding to the first process have been completely destroyed, and the present application is not limited to a manner of determining whether all pages corresponding to the first process have been completely destroyed.
In one example, before determining that all pages corresponding to the first process have been completely destroyed, the method may further include:
receiving a first instruction for creating a page of an application to which a first process belongs;
creating a first page according to a first instruction;
and adding the first page into a page queue corresponding to the first process.
In one example, before determining that all pages corresponding to the first process have been completely destroyed, the method may further include:
determining whether a second page in a page queue corresponding to the first process is destroyed;
and if so, removing the second page from the page queue corresponding to the first process.
Thus, when the page of the application to which the first process belongs is created, the created page is added into the page queue corresponding to the first process, and when the page of the application to which the first process belongs is destroyed, the corresponding page is removed from the page queue corresponding to the first process.
S303, killing the first process.
And after all the pages corresponding to the first process are determined to be destroyed completely, executing the operation of killing the first process, wherein the situation of forced page exit cannot occur because the first process does not have the pages which are not destroyed, and the visual phenomenon of crash flash-back cannot occur.
Before killing the first process, it may further include:
judging whether a page queue corresponding to the current first process is empty or not;
If so, an operation is performed that kills the first process.
By the embodiment, the first process is ensured to have no non-destroyed page when the operation of killing the first process is executed, so that the visual phenomenon of crash flash back is ensured not to occur when the operation of killing the first process is executed.
Fig. 4 is another flowchart illustrating a process processing method according to an embodiment of the present application. Referring to fig. 4, in this embodiment, the process processing method may include the following steps:
S401, an application A to which the first process belongs receives a service stopping instruction.
S402, judging whether a page queue corresponding to the current first process is empty, if so, executing step S406, otherwise, executing step S403.
S403, sending a first notification to each page in the page queue corresponding to the first process, wherein the first notification is used for indicating to execute destruction operation on the page.
S404, monitoring the destruction process of each page in the page queue corresponding to the first process.
S405, judging whether the destruction process of the page is not finished in the page queue corresponding to the first process, if so, executing the step S405, otherwise, executing the step S406.
S406, killing the first process and ending.
Fig. 5 is a flowchart illustrating still another exemplary process of the process processing method according to the embodiment of the present application. Referring to fig. 5, in this embodiment, the process processing method may include the following steps:
S501, an application A to which the first process belongs receives a logout instruction.
S502, sending a first notification to each page in a page queue corresponding to the first process, wherein the first notification is used for indicating to execute destruction operation on the page.
S503, monitoring whether a page queue corresponding to the current first process is empty, if yes, executing step S504, otherwise executing step S502.
This step is to prevent that after the first notification is sent to each page in the page queue corresponding to the first process, a new page corresponding to the first process is created.
S504, killing the first process and ending.
According to the embodiments, when the application needs to kill the current process, the embodiment of the application ensures that all pages corresponding to the destroying process are destroyed, and then the operation of killing the process is executed, so that the screen of the electronic equipment is prevented from flashing pictures due to the killing process, the visual experience of a user is improved, and the use experience of the user is improved.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory is coupled with the processor, the memory stores program instructions, and when the program instructions are executed by the processor, the electronic equipment can make the electronic equipment execute the process processing method.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment also provides a computer storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to execute the above-described related method steps to implement the process processing method in the above-described embodiments.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-described relevant steps to implement the process processing method in the above-described embodiments.
In addition, the embodiment of the application also provides a device, which can be a chip, a component or a module, and can comprise a processor and a memory which are connected; the memory is configured to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory, so that the chip executes the process processing method in each method embodiment.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the application.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The steps of a method or algorithm described in connection with the present disclosure may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access Memory (Random Access Memory, RAM), flash Memory, read Only Memory (ROM), erasable programmable Read Only Memory (Erasable Programmable ROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, hard disk, a removable disk, a compact disk Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. A process processing method, applied to an electronic device, comprising:
When a first process needs to be killed, notifying to execute destruction operation on all pages corresponding to the first process;
determining that all pages corresponding to the first process are completely destroyed;
judging whether a page queue corresponding to the first process is empty or not at present;
if so, killing the first process;
if not, returning to the step of executing the destroying operation of the pages corresponding to the first process by executing the notice;
the scene needing to kill the first process comprises any one of the following scenes:
the application to which the first process belongs receives an instruction for stopping service;
The application to which the first process belongs receives a logout instruction;
Receiving an instruction for canceling starting in the process of starting an application to which the first process belongs;
the notifying of executing the destroying operation on all pages corresponding to the first process includes:
and sending a first notification to each page in a page queue corresponding to the first process, wherein the first notification is used for indicating to execute destruction operation on the page.
2. The method of claim 1, wherein determining that all pages corresponding to the first process have been completely destroyed comprises:
monitoring the destruction process of each page in the page queue corresponding to the first process;
If the process of destroying all the pages in the page queue corresponding to the first process is monitored to be finished, determining that all the pages corresponding to the first process are destroyed completely.
3. The method of claim 1, wherein determining that all pages corresponding to the first process have been completely destroyed comprises:
Monitoring whether a page queue corresponding to the first process is empty or not;
If yes, determining that all pages corresponding to the first process are completely destroyed.
4. The method of claim 1, wherein determining that all pages corresponding to the first process have been completely destroyed comprises:
Judging whether a destruction response message returned by a page queue corresponding to the first process is received or not, wherein the destruction response message is used for indicating that all pages in the page queue are destroyed;
If yes, determining that all pages corresponding to the first process are completely destroyed.
5. The method of claim 1, wherein before determining that all pages corresponding to the first process have been completely destroyed, further comprising:
receiving a first instruction for creating a page of an application to which the first process belongs;
Creating a first page according to the first instruction;
And adding the first page to a page queue corresponding to the first process.
6. The method of claim 1, wherein before determining that all pages corresponding to the first process have been completely destroyed, further comprising:
determining whether a second page in a page queue corresponding to the first process is destroyed;
And if so, removing the second page from the page queue corresponding to the first process.
7. An electronic device, comprising:
A memory and a processor, the memory coupled with the processor;
The memory stores program instructions that, when executed by the processor, cause the electronic device to perform the process-handling method of any of claims 1-6.
8. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the process method according to any one of claims 1-6.
CN202210766462.9A 2022-07-01 2022-07-01 Process processing method and electronic equipment Active CN116048646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210766462.9A CN116048646B (en) 2022-07-01 2022-07-01 Process processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210766462.9A CN116048646B (en) 2022-07-01 2022-07-01 Process processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116048646A CN116048646A (en) 2023-05-02
CN116048646B true CN116048646B (en) 2024-05-10

Family

ID=86127864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210766462.9A Active CN116048646B (en) 2022-07-01 2022-07-01 Process processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116048646B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912366A (en) * 2016-04-14 2016-08-31 广州市久邦数码科技有限公司 Implementation method for plug-in type development of desktop application
CN109361948A (en) * 2018-10-30 2019-02-19 深圳Tcl数字技术有限公司 Methods for interface management, intelligent terminal and readable storage medium storing program for executing
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium
CN111949471A (en) * 2019-05-16 2020-11-17 珠海格力电器股份有限公司 Monitoring control method for terminal process

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912366A (en) * 2016-04-14 2016-08-31 广州市久邦数码科技有限公司 Implementation method for plug-in type development of desktop application
CN109361948A (en) * 2018-10-30 2019-02-19 深圳Tcl数字技术有限公司 Methods for interface management, intelligent terminal and readable storage medium storing program for executing
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium
CN111949471A (en) * 2019-05-16 2020-11-17 珠海格力电器股份有限公司 Monitoring control method for terminal process

Also Published As

Publication number Publication date
CN116048646A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN113741840A (en) Application interface display method under multi-window screen projection scene and electronic equipment
CN103294428A (en) Information display method and electronic equipment
KR20150027934A (en) Apparatas and method for generating a file of receiving a shoot image of multi angle in an electronic device
CN115017534B (en) File processing authority control method, device and storage medium
CN116048646B (en) Process processing method and electronic equipment
WO2023005751A1 (en) Rendering method and electronic device
CN114140105A (en) Resource transfer method, device, equipment and computer readable storage medium
CN116672707B (en) Method and electronic device for generating game prediction frame
CN116719556B (en) System upgrading method and electronic equipment
CN116688494B (en) Method and electronic device for generating game prediction frame
CN115017487B (en) Switching method for login account of electronic equipment and electronic equipment
CN115686338B (en) Screen splitting method and electronic equipment
CN117130627B (en) Fitting upgrading method and electronic equipment
CN116680133B (en) Black screen detection method and electronic equipment
CN113850633B (en) Information pushing method and device
CN116700855B (en) Interface display method and electronic equipment
CN114879896B (en) Frozen screen processing method, electronic equipment and storage medium
CN116887388B (en) Communication processing method, electronic device and storage medium
CN116841686B (en) Application page display method
CN117707715A (en) Application management method and electronic device
CN117729561A (en) System upgrading method, terminal and storage medium
CN117615055A (en) Display control method and electronic equipment
CN116679855A (en) Data processing method and device
CN116033157A (en) Screen projection method and electronic equipment
CN115017473A (en) Authorization method and electronic equipment

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