CN106775980B - Process ID management method and device and computer readable medium - Google Patents

Process ID management method and device and computer readable medium Download PDF

Info

Publication number
CN106775980B
CN106775980B CN201611162146.1A CN201611162146A CN106775980B CN 106775980 B CN106775980 B CN 106775980B CN 201611162146 A CN201611162146 A CN 201611162146A CN 106775980 B CN106775980 B CN 106775980B
Authority
CN
China
Prior art keywords
file
default
file name
temporary
name
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
CN201611162146.1A
Other languages
Chinese (zh)
Other versions
CN106775980A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611162146.1A priority Critical patent/CN106775980B/en
Publication of CN106775980A publication Critical patent/CN106775980A/en
Application granted granted Critical
Publication of CN106775980B publication Critical patent/CN106775980B/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The embodiment of the invention discloses a process ID management method and a device, wherein the method comprises the following steps: receiving a process ID file creating instruction aiming at a target process; determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creating instruction; judging whether a first process using the default process ID file name exists or not, and if so, creating a temporary process ID file with the file name as the temporary process ID file name; and writing the process ID of the target process into the temporary process ID file. The device includes: the device comprises a receiving module, an obtaining module, a judging module and an executing module. The embodiment of the invention can improve the effect of managing the process.

Description

Process ID management method and device and computer readable medium
Technical Field
The invention relates to the technical field of internet, in particular to a process ID management method and device.
Background
The Process ID (PID) is a value used by most operating system kernels to uniquely identify a process, and since different processes have different process IDs, the corresponding processes can be controlled by the process IDs.
At present, when a process is managed by a process ID, the process ID is written into a file to form a process ID file and stored, and the corresponding process can be managed by reading the process ID in the process ID file in the operation and maintenance process of an operating system.
For the method for managing the process by managing the process ID at present, when an application program is smoothly upgraded or a user repeatedly starts the same application program, two same processes run simultaneously, and the process ID is covered because the process ID file names corresponding to the same process are the same. After the process ID is covered, the corresponding process cannot be managed, which results in poor process management effect.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem that: provided are a process ID management method and device capable of improving process management effect.
In one aspect, an embodiment of the present invention provides a process ID management method, including:
receiving a process ID file creating instruction aiming at a target process;
determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creating instruction;
judging whether a first process using the default process ID file name exists or not, and if so, creating a temporary process ID file with the file name as the temporary process ID file name;
and writing the process ID of the target process into the temporary process ID file.
Optionally, the determining whether there is a first process using the default process ID filename includes:
judging whether a first process ID file with the file name as the default process ID file name exists or not;
judging whether a first process corresponding to the first process ID file exists or not;
and if the two judgment results are both yes, judging that the first process using the default process ID file name exists.
Alternatively, when it is determined that the first process ID file having the file name of the default process ID file name does not exist,
further comprising:
creating a default process ID file with a file name as the default process ID file name;
and writing the process ID of the target process into the default process ID file.
Alternatively, when it is determined that the first process ID file having a file name of the default process ID file name exists, and it is determined that the first process corresponding to the first process ID file does not exist,
further comprising:
and updating the process ID of the target process into the first process ID file.
Optionally, the determining whether the first process corresponding to the first process ID file exists includes:
reading a first process ID from the first process ID file;
calling a process opening function according to the first process ID;
and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
Optionally, the determining whether the first process corresponding to the first process ID file exists includes:
reading a first process ID from the first process ID file;
acquiring at least one window handle of the first process according to the first process ID;
and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
Optionally, after determining that there is no first process using the default process ID filename, the method further includes:
obtaining a default process ID file with the file name as the default process ID file name;
and writing the process ID of the target process into the default process ID file.
Optionally, after the writing the process ID of the target process into the temporary process ID file, the method further includes:
receiving a process ID file deletion instruction for the first process;
deleting the process ID file of the first process;
renaming the filename of the temporary process ID file to the default process ID filename.
Optionally, the temporary process ID filename includes: the default process ID filename and temporary file suffix name.
Optionally, the renaming the filename of the temporary process ID file to the default process ID filename includes:
deleting a temporary file suffix name included in the file name of the temporary process ID file to form the default process ID file with the file name as the default process ID file name.
On the other hand, an embodiment of the present invention further provides a process ID management apparatus, including: the device comprises a receiving module, an obtaining module, a judging module and an executing module;
the receiving module is used for receiving a process ID file creating instruction aiming at a target process;
the acquisition module is used for determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creation instruction received by the receiving module;
the judging module is used for judging whether a first process using the default process ID file name acquired by the acquiring module exists or not;
and the execution module is used for creating a temporary process ID file with the file name as the temporary process ID file name and writing the process ID of the target process into the temporary process ID file if the judgment result of the judgment module is positive.
Alternatively,
the judging module is configured to judge whether a first process ID file with a file name of the default process ID file name exists or not, judge whether a first process corresponding to the first process ID file exists or not, and judge that the first process using the default process ID file name exists if both judgment results are yes.
Alternatively,
the execution module is further configured to create a default process ID file with a file name of the default process ID file name and write the process ID of the target process into the default process ID file when the determination module determines that the first process ID file with the file name of the default process ID file name does not exist.
Alternatively,
the execution module is further configured to update the process ID of the target process into the first process ID file when the determination module determines that the first process ID file having the file name of the default process ID file name exists and determines that the first process corresponding to the first process ID file does not exist.
Alternatively,
the judging module comprises: a first judgment unit;
the first judging unit is used for reading a first process ID from the first process ID file; calling a process opening function according to the first process ID; and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
Alternatively,
the judging module comprises: a second judgment unit;
the second judging unit is configured to read a first process ID from the first process ID file; acquiring at least one window handle of the first process according to the first process ID; and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
Alternatively,
the execution module is further configured to, after the determining module determines that the first process using the default process ID filename does not exist, obtain a default process ID file having a filename equal to the default process ID filename, and write the process ID of the target process into the default process ID file.
Alternatively,
the receiving module is further configured to receive a process ID file deletion instruction for the first process;
the execution module is further configured to delete the process ID file of the first process, and rename the file name of the temporary process ID file to the default process ID file name.
Alternatively,
the execution module comprises: a renaming unit;
the renaming unit is configured to delete a temporary file suffix name included in the file name of the temporary process ID file when the temporary process ID file name includes the default process ID file name and the temporary file suffix name, and form the default process ID file having the file name of the default process ID file name.
In a third aspect, an embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored, and when executed by a processor, cause the processor to execute the method described in any of the above embodiments of the process ID management method.
According to the process ID management method, device and computer readable medium provided by the embodiment of the invention, after a process ID file creating instruction for a target process is received, a default process ID file name and a temporary process ID file name corresponding to a module process are determined, if the determined default process ID file name is already used by other processes, a temporary process ID file with the file name being the temporary process ID file name is created, and the process ID of the target process is written into the temporary process ID file. Therefore, when the same process is repeatedly started, the process ID of the later starting process cannot cover the process ID of the previous starting process, so that the condition that the previous starting process cannot be managed through the process ID can be prevented, and the process management effect is improved.
Based on the process ID management method, apparatus, and computer readable medium provided by the above embodiments of the present invention, the technical solutions of the present invention are further described in detail with reference to the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
The invention will be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a flowchart of a process ID management method according to an embodiment of the present invention.
FIG. 2 is a flowchart of a process ID file creation method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a process ID file deletion method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a process ID file management apparatus according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
As shown in fig. 1, an embodiment of the present invention provides a process ID management method, which may include the following steps:
step 101: receiving a process ID file creating instruction aiming at a target process;
step 102: determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creating instruction;
step 103: judging whether a first process using the default process ID file name exists or not, and if so, creating a temporary process ID file with the file name as the temporary process ID file name;
step 104: and writing the process ID of the target process into the temporary process ID file.
The embodiment of the invention provides a process ID management method, which comprises the steps of determining a default process ID file name and a temporary process ID file name corresponding to a module process after receiving a process ID file creation instruction aiming at a target process, creating a temporary process ID file with the file name being the temporary process ID file name if the determined default process ID file name is used by other processes, and writing the process ID of the target process into the temporary process ID file. Therefore, when the same process is repeatedly started, the process ID of the later starting process cannot cover the process ID of the previous starting process, so that the condition that the previous starting process cannot be managed through the process ID can be prevented, and the process management effect is improved.
In an embodiment of the present invention, when determining whether the first process using the default process ID file name exists in step 103, the following two determining steps may be sequentially performed:
first judgment: judging whether a first process ID file with the file name as the default process ID file name exists or not;
second judgment: judging whether a first process corresponding to the first process ID file exists or not;
and if the judgment results of the first judgment and the second judgment are both yes, judging that the first process using the default process ID file name exists, otherwise, judging that the first process using the default process ID file name does not exist.
Specifically, after determining a default process ID filename corresponding to a target process, determining whether a first process ID file whose filename is the default process ID filename exists, if so, indicating that the default process ID filename is already occupied by the first process ID file, but whether the first process ID file is valid is still uncertain; and further judging whether a first process corresponding to the first process ID file exists or not, wherein if so, the first process ID file is valid when the first process is running. Through the first judgment process and the second judgment process, if the two judgment results are yes, the default process ID file name is occupied, the first process ID file occupying the default process ID file name is used for managing the first process, and the default process ID file name is used by the existing first process. Through the first judgment process and the second judgment process, whether the default process ID file name is used or not can be accurately judged, so that the condition that process ID file name resources are wasted or process management is incomplete due to misjudgment can be prevented.
In one embodiment of the invention, the absence of a first process using the default process ID filename has the following two cases:
the first condition is as follows: a first process ID file with a file name as a default process ID file name does not exist;
case two: there is a first process ID file with a file name that is the default process ID file name, but the first process corresponding to the first process ID file does not exist.
For case one:
and when the first process ID file with the file name as the default process ID file name does not exist, namely the result of the first judgment is negative, the file name of any process ID file does not exist as the default process ID file name corresponding to the target process, and the default process ID file name is not occupied. At this time, a default process ID file with the file name as the default process ID file name is created, and the process ID of the target process is written into the created default process ID file.
Because the file name of any process ID file is not the default process ID file name, the default process ID file can be created to store the process ID of the target process, the process ID of the target process is stored on the premise of not covering other process IDs, and the target process can be effectively managed.
For case two:
when a first process ID file with a file name of the default process ID file name exists but a first process corresponding to the first process ID file does not exist, that is, the first determination result is yes, and the second determination result is no, although the first process ID file with the file name of the default process ID file name exists, the first process corresponding to the first process ID file already exits and is not operated, and the first process ID file is in an invalid state. At this time, because the first process ID file is useless, the process ID of the target process is directly updated into the first process ID file to replace the original process ID in the first process ID file. After the update is completed, the process ID of the target process is stored in the first process ID file, and the file name of the first process ID file is the default process ID file name corresponding to the target process, and at this time, the first process ID file exists as the default process ID file of the target process.
When the first process ID file with the file name as the default process ID file name exists and the first process corresponding to the first process ID file does not exist, the first process ID file is updated to serve as the default process ID file of the target process, the invalid first process ID file can be reused, the process ID file does not need to be created again, system resources are saved, the operation rate of the system is improved, and the efficiency of process management is improved.
In an embodiment of the present invention, regarding the second determination, that is, determining whether the first process corresponding to the first process ID file exists may be implemented in the following two ways:
the first method is as follows: the function is opened through the process;
the second method comprises the following steps: and the method is realized through a window judgment function.
Aiming at the first mode:
after the first Process ID file with the file name as the default Process ID file name is judged to exist, reading the first Process ID from the first Process ID file, calling a Process opening function to Open a first Process corresponding to the first Process ID, such as calling an Open function Open Process, and if the function opening call is successful, indicating that the first Process corresponding to the first Process ID file is running, thereby judging that the first Process exists; if the function call fails to be opened, the first process corresponding to the first process ID file is quitted, and therefore the first process is judged not to exist.
In the second embodiment:
after judging that a first process ID file with a file name as a default process ID file name exists, reading a first process ID from the first process ID file, further acquiring at least one window handle of the first process according to the first process ID, judging whether each window corresponding to the at least one window handle exists through a window judgment function, for example, judging whether each window corresponding to each window handle exists through a window judgment function if (IsWindow ()), and if so, judging that the window of the first process exists, and judging that the first process exists when the first process is in a running state; if not, the window of the first process does not exist, the first process does not run any more, and the first process is judged to not exist.
Whether the first process corresponding to the first process ID file exists or not is judged through the first mode and the second mode, the requirements of different users can be met, the process ID management method is applied to different programming environments, and the applicability of the process ID management method is improved.
In an embodiment of the present invention, if it is determined that there is no first process using the default process ID filename, a default process ID file having a filename that is the default process ID filename is acquired, and the process ID of the target process is written into the default process ID file.
Specifically, when the first process using the default process ID filename does not exist, the default process ID filename with the invalidated filename as the default process ID filename is directly created or acquired, and the process ID of the target process is written into the default process ID file, so that the process ID of the target process can be stored under various conditions, thereby ensuring effective management of the target process, and further improving the effect of managing the process by using the process ID management method.
In an embodiment of the present invention, after step 104, the method further comprises:
receiving a process ID file deleting instruction aiming at a first process;
deleting the process ID file of the first process;
renaming the filename of the temporary process ID file to the default process ID filename.
Specifically, after the process ID of the target process is written in the temporary process ID file, if a process ID file deletion instruction for the first process is received, the process ID file of the first process is deleted, that is, the process ID file whose file name is the default process ID file name is deleted. And after the process ID file of the first process is deleted, renaming the temporary process ID file to be a default process ID file.
And when the process ID file with the file name as the default process ID file name is deleted, if a temporary process ID file corresponding to the default process ID file name exists, renaming the temporary process ID file, wherein the file name of the renamed temporary process ID file is the default process ID file name. Because the process ID file occupying the default process ID file name is deleted, the corresponding temporary process ID file is renamed to the default process ID file, the process ID is not covered at this moment, and the occupied state of the temporary process ID file name is cancelled in time for use when the same process is restarted, so that the logic of the process ID management method is more rigorous, the temporary process ID file is prevented from being covered, and the reliability of process ID management is improved.
In one embodiment of the present invention, the temporary process ID file name includes a default process ID file name and a temporary file suffix name, for example, the default process ID file name is app.pid, and the temporary file suffix name is. tmp, and then the temporary process ID file name is app.pid.tmp.
The temporary process ID file name is formed by adding a temporary file suffix name after the default process ID file name, so that the default process ID file and the corresponding temporary process ID file can be conveniently distinguished, the corresponding relation between the default process ID file and the temporary process ID file can be clearly determined, the time required for identifying and renaming the temporary process ID file is saved, and the process ID management efficiency is improved.
In an embodiment of the present invention, when the temporary process ID file includes the default process ID file name and the temporary file suffix name, the process of renaming the temporary process ID file to the default process ID file only needs to delete the temporary file suffix name in the temporary process ID file name. For example, the file name of the temporary process ID file is app.pid.tmp, and when the temporary process ID file is renamed, only the suffix name of the temporary file is needed to be deleted.
Based on the naming rule of the default process ID file name and the temporary process ID file name, when the temporary process ID file is renamed, the corresponding default process ID file can be obtained only by deleting the temporary file suffix name, the renaming process needs less computing resources, and the renaming operation efficiency can be improved.
The following describes a process ID file creation process and a process ID file deletion process in the process ID management process, respectively, with reference to specific embodiments.
As shown in fig. 2, an embodiment of the present invention provides a process ID file creating method, which may include the following steps:
step 201: a process ID file creation instruction for a target process is received.
In one embodiment of the invention, each time a target process starts to run, a process ID file creation instruction for the target process is formed to instruct the formation of a process ID file corresponding to the target process for controlling the target process. And receiving a formed process ID file creating instruction.
For example, after an application a is started, its corresponding process a starts to run, and receives a process ID file creation instruction a for the process a.
Step 202: and determining a default process ID file name and a temporary process ID file name of the target process according to the received process ID file creating instruction.
In one embodiment of the present invention, after receiving a process ID file creation instruction for a target process, a default process ID file name and a temporary process ID file name of the target process are determined according to the received process ID file creation instruction.
For example, according to the received process ID file creation instruction a, a default process ID file name a.pid and a temporary process ID file name a.pid.tmp corresponding to the process a are determined.
Step 203: and judging whether a first process ID file with the file name as the default process ID file name exists, if so, executing the step 204, otherwise, executing the step 206.
In an embodiment of the present invention, after obtaining the default process ID filename corresponding to the target process, determining whether there is a first process ID file with the filename being the default process ID filename, if so, indicating that the default process ID filename corresponding to the target process is already occupied, and correspondingly performing step 204; if not, it indicates that the default process ID filename corresponding to the target process is not occupied, and correspondingly performs step 206.
For example, if there exists a first process ID file in the existing process ID files, the file name of the first process ID file is a.pid, which indicates that the default process ID file name of the process a is already occupied, step 204 is executed accordingly; if none of the existing process ID files has a file name A.pid indicating that the default process ID file for process A is not occupied, step 206 is performed accordingly.
Step 204: and judging whether a first process corresponding to the first process ID file exists, if so, executing the step 205, otherwise, executing the step 207.
In an embodiment of the present invention, after determining that there is a first process ID file with a file name of the default process ID file name, further determining whether a first process corresponding to the first process ID file exists, if so, indicating that the first process ID file is valid, so as to manage the first process, and correspondingly performing step 205; if not, indicating that the first process ID file has failed because its corresponding first process has exited execution, step 207 is performed accordingly.
For example, the user has started the application a once before starting the application a this time, and the first process is a process corresponding to the application a started previously, so the file name of the first process ID file corresponding to the first process is a.pid. If the first process ID file exists corresponding to the first process, it indicates that the previously started application program a is still in a running state, and at this time, the first process ID file is still valid, and is used for managing the previously started application program a, and step 205 is correspondingly performed; if the first process corresponding to the first process ID file does not exist, indicating that the previously started application a has exited from operation, at which point the first process ID file has expired, step 207 is performed accordingly.
Step 205: and creating a temporary process ID file with the file name as the temporary process ID file name, writing the process ID of the target process into the temporary process ID file, and ending the current process.
In an embodiment of the present invention, according to the temporary process ID filename determined in step 202, a temporary process ID file with the filename being the temporary process ID filename is created, the process ID of the target process is written into the created temporary process ID file, and the target process can be managed by writing the temporary process ID file of the process ID.
For example, a temporary process ID file with a file name of a.pid.tmp is created, and the process ID of the subsequently started process a is written in the temporary process ID file.
Step 206: and creating a default process ID file with the file name as the default process ID file name, writing the process ID of the target process into the default process ID file, and ending the current process.
In an embodiment of the present invention, after it is determined that there is no first process ID file with a file name of the default process ID file name, a default process ID file with a file name of the default process ID file name is created, the process ID of the target process is written into the created default process ID file, and the target process can be managed by writing the default process ID file of the process ID.
For example, a default process ID file with the file name a.pid is created, and the process ID of the newly started process a is written into the temporary process ID file.
Step 207: and updating the process ID of the target process into the first process ID file.
In one embodiment of the present invention, when it is determined that the first process corresponding to the first process ID file does not exist, the process ID of the target process is written into the first process ID file, and the original process ID in the first process ID file is overwritten.
For example, the process ID of the subsequently started process a is written into the first process ID file with the file name a.pid, and the process ID of the previously started process a originally in the first process ID file is overwritten.
As shown in fig. 3, an embodiment of the present invention provides a method for deleting a process ID file, which may include the following steps:
step 301: a process ID file delete instruction for a first process is received.
In an embodiment of the present invention, after the application program corresponding to the first process is closed, a process ID file deletion instruction corresponding to the first process is formed to instruct to delete the process ID file corresponding to the first process. And receiving a formed process ID file deleting instruction.
For example, the first process a is a process corresponding to the application program a, and when the application program a corresponding to the first process a exits from running, the process ID file deletion instruction a corresponding to the first process a is received.
Step 302: and determining a default process ID file name and a temporary process ID file name corresponding to the first process according to the process ID file deleting instruction.
In an embodiment of the present invention, after receiving a process ID file deletion instruction for a first process, a default process ID file name and a temporary process ID file name of the first process are determined according to the process ID file deletion instruction.
For example, according to the received process ID file deletion instruction a, a default process ID file name a.pid and a temporary process ID file name a.pid.tmp corresponding to the first process a are determined.
Step 303: and judging whether a second process ID file with the file name as the default process ID file name exists, if so, executing step 304, and otherwise, executing step 308.
In an embodiment of the present invention, according to the default process ID filename obtained in step 302, it is determined whether a second process ID file with a filename equal to the default process ID filename exists, if so, it is determined that the second process ID file may be a process ID file corresponding to the first process, and step 304 is correspondingly performed to further determine; if not, indicating that the default process ID file corresponding to the first process does not exist, step 308 is executed accordingly.
For example, if there is a second process ID file with a file name of a.pid among the existing process ID files, step 304 is performed; if none of the existing process ID files has a file name A.pid, step 308 is performed accordingly.
Step 304: and judging whether the process ID stored in the second process ID file is the process ID of the first process, if so, executing the step 305, otherwise, executing the step 308.
In an embodiment of the present invention, after determining that there is a second process ID file with a file name of the default process ID file name, further reading a process ID stored in the second process ID file, and determining whether the read process ID is a process ID of the first process, if so, indicating that the second process ID file is a process ID file corresponding to the first process, and correspondingly performing step 305; if not, it indicates that the second process ID file is not the process ID file corresponding to the first process, and the default process ID file corresponding to the first process does not exist, and step 308 is executed accordingly.
For example, read the process ID from the second process ID file with the file name a.pid, if the read process ID is the same as the process ID of the first process a, perform step 305 accordingly; if the read process ID is not the same as the process ID of the first process A, step 308 is performed accordingly.
Step 305: the second process ID file is deleted.
In an embodiment of the present invention, when it is determined that the second process ID file is the default process ID file corresponding to the first process, the second process ID file is deleted.
For example, the second process ID file with a file name of a.pid is deleted.
Step 306: and judging whether a third process ID file with the file name as the temporary process ID file name exists, if so, executing a step 307, and if not, ending the current process.
In an embodiment of the present invention, after deleting the default process ID file corresponding to the first process, it is further determined whether a third process ID file with a file name of the temporary process ID file exists, if so, step 307 is correspondingly executed, otherwise, the current process is ended.
For example, it is determined whether a third process ID file with a file name of a.pid.tmp exists, if so, step 307 is executed accordingly, otherwise, the current flow is ended.
Step 307: and renaming the file name of the third process ID file to be the default process ID file name, and ending the current process.
In an embodiment of the present invention, when it is determined that a third process ID file exists, where the file name of the third process ID file is the temporary process ID file name determined in step 302, the third process ID file is renamed, a suffix name of the temporary file in the original file name is deleted, and the file name of the renamed third process ID file is the same as the default process ID file name corresponding to the first process ID.
For example, the third process ID file name is a.pid.tmp, and after deleting the temporary file suffix.tmp, the third process ID file name is a.pid, which is the same as the default process ID file name corresponding to the first process a.
Step 308: and judging whether a fourth process ID file with the file name of the temporary process ID file exists, if so, executing the step 309, and if not, ending the current process.
In an embodiment of the present invention, according to the temporary process ID filename obtained in step 302, it is determined whether a fourth process ID file with a filename being the temporary process ID filename exists, if so, it is determined that the fourth process ID filename may be a process ID file corresponding to the first process, and step 309 is correspondingly executed to perform further determination; if not, the process ID file of the first process does not exist, and the current flow is ended.
For example, if there exists a fourth process ID file among the existing process ID files, the process name of the fourth process ID file is app.pid.tmp, step 309 is executed accordingly; and if the file name of any process ID file in the existing process ID files is not app.
Step 309: and judging whether the process ID stored in the fourth process ID file is the process ID of the first process, if so, executing the step 310, and otherwise, ending the current process.
In an embodiment of the present invention, the process ID stored in the fourth process ID file is read, whether the read process ID is the same as the process ID of the first process is determined, if so, it indicates that the fourth process ID file is the process ID file corresponding to the first process, and step 310 is correspondingly executed; if not, the description shows that the process ID file of the first process does not exist, and the current flow is ended.
For example, reading the process ID from the fourth process ID file with the file name app.pid.tmp, and if the read process ID is the same as the process ID of the first process a, performing step 310 accordingly; otherwise, ending the current flow.
Step 310: the fourth process ID file is deleted.
In an embodiment of the present invention, after determining that the fourth process ID file is the default process ID file corresponding to the first process, the fourth process ID file is deleted.
For example, the fourth process ID file having a file name app.
As shown in fig. 4, an embodiment of the present invention provides a process ID management apparatus, including: a receiving module 401, an obtaining module 402, a judging module 403 and an executing module 404;
the receiving module 401 is configured to receive a process ID file creation instruction for a target process;
the obtaining module 402 is configured to determine a default process ID filename and a temporary process ID filename corresponding to the target process according to the process ID file creation instruction received by the receiving module 401;
the determining module 403 is configured to determine whether a first process using the default process ID file name acquired by the acquiring module 402 exists;
the executing module 404 is configured to, according to the determination result of the determining module 403, if the process ID file is a temporary process ID file with a file name of the temporary process ID file, create a temporary process ID file with a file name of the temporary process ID file, and write the process ID of the target process into the temporary process ID file.
In an embodiment of the present invention, the determining module 403 is configured to determine whether a first process ID file with a file name of the default process ID file name exists, determine whether a first process corresponding to the first process ID file exists, and determine that the first process using the default process ID file name exists if both the determination results are yes.
In an embodiment of the present invention, the executing module 404 is further configured to create a default process ID file with a file name of the default process ID file name and write the process ID of the target process into the default process ID file when the determining module 403 determines that the first process ID file with the file name of the default process ID file name does not exist.
In an embodiment of the present invention, the executing module 404 is further configured to update the process ID of the target process into the first process ID file when the determining module 403 determines that the first process ID file with the file name being the default process ID file name exists and determines that the first process corresponding to the first process ID file does not exist.
In an embodiment of the present invention, the determining module 403 includes: a first judgment unit;
the first judging unit is used for reading a first process ID from the first process ID file; calling a process opening function according to the first process ID; and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
In an embodiment of the present invention, the determining module 403 includes: a second judgment unit;
the second judging unit is configured to read a first process ID from the first process ID file; acquiring at least one window handle of the first process according to the first process ID; and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
In an embodiment of the present invention, the executing module 404 is further configured to, after the determining module 403 determines that there is no first process using the default process ID file name, obtain a default process ID file with a file name of the default process ID file name, and write the process ID of the target process into the default process ID file.
In an embodiment of the present invention, the receiving module 401 is further configured to receive a process ID file deletion instruction for the first process; the executing module 404 is further configured to delete the process ID file of the first process and rename the file name of the temporary process ID file to the default process ID file name.
In one embodiment of the present invention, the executing module 404 includes: a renaming unit;
the renaming unit is configured to delete a temporary file suffix name included in the file name of the temporary process ID file when the temporary process ID file name includes the default process ID file name and the temporary file suffix name, and form the default process ID file having the file name of the default process ID file name.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules in the apparatus are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
Embodiments of the present invention also provide a computer-readable medium storing instructions for causing a machine to perform a process ID management method as described herein. Specifically, a system or an apparatus equipped with a readable medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the readable medium.
In this case, the program code itself read from the readable medium can realize the functions of any of the above-described embodiments, and thus the program code and the readable medium storing the program code constitute a part of the present invention.
Examples of the readable medium for supplying the program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs, DVD + RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the readable medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on the instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The process ID management method, the device and the computer readable medium provided by the embodiment of the invention at least have the following beneficial effects:
1. in the embodiment of the invention, after a process ID file creating instruction for a target process is received, a default process ID file name and a temporary process ID file name corresponding to a module process are determined, if the determined default process ID file name is already used by other processes, a temporary process ID file with the file name as the temporary process ID file name is created, and the process ID of the target process is written into the temporary process ID file. Therefore, when the same process is repeatedly started, the process ID of the later starting process cannot cover the process ID of the previous starting process, so that the condition that the previous starting process cannot be managed through the process ID can be prevented, and the process management effect is improved.
2. In the embodiment of the present invention, when determining whether a first process using a default process ID filename exists, sequentially determining whether a first process ID file whose filename is the default process ID filename exists, and determining whether a first process corresponding to the first process ID file exists. Through the two judgment processes, whether the default process ID file name is used or not can be accurately judged, so that the condition that process ID file name resources are wasted or process management is incomplete due to misjudgment can be prevented.
3. In the embodiment of the invention, after the first process ID file with the file name as the default process ID file name exists, whether the first process corresponding to the first process ID file exists is further judged, so that whether the first process ID file occupying the default process ID file name is invalid or not can be judged, if the first process ID file occupying the default process ID file name is invalid, the first process ID file is directly used as the default process ID file of the target process, the invalid first process ID file can be reused, the process ID file does not need to be created again, the resources of the system are saved, the operation rate of the system is improved, and the efficiency of managing the processes is further improved.
4. In the embodiment of the present invention, when determining whether the first Process corresponding to the first Process ID file exists, the Process may be executed in multiple ways to determine the Process, for example, by opening a function Open Process or a window to determine a function if (IsWindow ()), so that requirements of different users may be met, and the Process ID management method is applied to different programming environments, thereby improving applicability of the Process ID management method.
5. In the embodiment of the present invention, after a process ID file having a file name of a default process ID file name is deleted, if a temporary process ID file corresponding to the default process ID file name exists, the temporary process ID file is renamed, and the file name of the renamed temporary process ID file is the default process ID file name. Because the process ID file occupying the default process ID file name is deleted, the corresponding temporary process ID file is renamed to the default process ID file, the process ID is not covered at this moment, and the occupied state of the temporary process ID file name is cancelled in time for use when the same process is restarted, so that the logic of the process ID management method is more rigorous, the temporary process ID file is prevented from being covered, and the reliability of process ID management is improved.
1. A process ID management method, comprising:
receiving a process ID file creating instruction aiming at a target process;
determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creating instruction;
judging whether a first process using the default process ID file name exists or not, and if so, creating a temporary process ID file with the file name as the temporary process ID file name;
and writing the process ID of the target process into the temporary process ID file.
2. According to the method as set forth in claim 1,
the determining whether there is a first process using the default process ID filename includes:
judging whether a first process ID file with the file name as the default process ID file name exists or not;
judging whether a first process corresponding to the first process ID file exists or not;
and if the two judgment results are both yes, judging that the first process using the default process ID file name exists.
3. According to the method as set forth in claim 2,
when it is determined that the first process ID file having the file name of the default process ID file name does not exist,
further comprising:
creating a default process ID file with a file name as the default process ID file name;
and writing the process ID of the target process into the default process ID file.
4. According to the method as set forth in claim 2,
when it is determined that the first process ID file having the file name of the default process ID file name exists and it is determined that the first process corresponding to the first process ID file does not exist,
further comprising:
and updating the process ID of the target process into the first process ID file.
5. According to the method as set forth in claim 2,
the determining whether the first process corresponding to the first process ID file exists includes:
reading a first process ID from the first process ID file;
calling a process opening function according to the first process ID;
and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
6. According to the method as set forth in claim 2,
the determining whether the first process corresponding to the first process ID file exists includes:
reading a first process ID from the first process ID file;
acquiring at least one window handle of the first process according to the first process ID;
and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
7. According to the method of any one of 1 to 6,
after determining that there is no first process using the default process ID filename, further comprising:
obtaining a default process ID file with the file name as the default process ID file name;
and writing the process ID of the target process into the default process ID file.
8. According to the method as set forth in claim 1,
after the writing the process ID of the target process to the temporary process ID file, further comprising:
receiving a process ID file deletion instruction for the first process;
deleting the process ID file of the first process;
renaming the filename of the temporary process ID file to the default process ID filename.
9. According to the method as set forth in claim 8,
the temporary process ID filename includes: the default process ID filename and temporary file suffix name.
10. According to the method as set forth in claim 9,
the renaming the filename of the temporary process ID file to the default process ID filename includes:
deleting a temporary file suffix name included in the file name of the temporary process ID file to form the default process ID file with the file name as the default process ID file name.
11. A process ID management apparatus comprising: the device comprises a receiving module, an obtaining module, a judging module and an executing module;
the receiving module is used for receiving a process ID file creating instruction aiming at a target process;
the acquisition module is used for determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creation instruction received by the receiving module;
the judging module is used for judging whether a first process using the default process ID file name acquired by the acquiring module exists or not;
and the execution module is used for creating a temporary process ID file with the file name as the temporary process ID file name and writing the process ID of the target process into the temporary process ID file if the judgment result of the judgment module is positive.
12. According to the apparatus as set forth in claim 11,
the judging module is configured to judge whether a first process ID file with a file name of the default process ID file name exists or not, judge whether a first process corresponding to the first process ID file exists or not, and judge that the first process using the default process ID file name exists if both judgment results are yes.
13. The apparatus according to claim 12, wherein the apparatus,
the execution module is further configured to create a default process ID file with a file name of the default process ID file name and write the process ID of the target process into the default process ID file when the determination module determines that the first process ID file with the file name of the default process ID file name does not exist.
14. The apparatus according to claim 12, wherein the apparatus,
the execution module is further configured to update the process ID of the target process into the first process ID file when the determination module determines that the first process ID file having the file name of the default process ID file name exists and determines that the first process corresponding to the first process ID file does not exist.
15. The apparatus according to claim 12, wherein the apparatus,
the judging module comprises: a first judgment unit;
the first judging unit is used for reading a first process ID from the first process ID file; calling a process opening function according to the first process ID; and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
16. The apparatus according to claim 12, wherein the apparatus,
the judging module comprises: a second judgment unit;
the second judging unit is configured to read a first process ID from the first process ID file; acquiring at least one window handle of the first process according to the first process ID; and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
17. The apparatus according to any one of claims 11 to 16,
the execution module is further configured to, after the determining module determines that the first process using the default process ID filename does not exist, obtain a default process ID file having a filename equal to the default process ID filename, and write the process ID of the target process into the default process ID file.
18. According to the apparatus as set forth in claim 11,
the receiving module is further configured to receive a process ID file deletion instruction for the first process;
the execution module is further configured to delete the process ID file of the first process, and rename the file name of the temporary process ID file to the default process ID file name.
19. In accordance with the apparatus set forth in claim 18,
the execution module comprises: a renaming unit;
the renaming unit is configured to delete a temporary file suffix name included in the file name of the temporary process ID file when the temporary process ID file name includes the default process ID file name and the temporary file suffix name, and form the default process ID file having the file name of the default process ID file name.
20. A computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1 to 10.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The method and apparatus of the present invention may be implemented in a number of ways. For example, the methods and apparatus of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (16)

1. A process ID management method, comprising:
receiving a process ID file creating instruction aiming at a target process;
determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creating instruction;
judging whether a first process using the default process ID file name exists or not, and if so, creating a temporary process ID file with the file name as the temporary process ID file name;
writing the process ID of the target process into the temporary process ID file;
receiving a process ID file deletion instruction for the first process;
deleting the process ID file of the first process;
renaming the filename of the temporary process ID file to the default process ID filename.
2. The method of claim 1, wherein determining whether a first process exists that uses the default process ID filename comprises:
judging whether a first process ID file with the file name as the default process ID file name exists or not;
judging whether a first process corresponding to the first process ID file exists or not;
and if the two judgment results are both yes, judging that the first process using the default process ID file name exists.
3. The method of claim 2, wherein when it is determined that the first process ID file having a file name of the default process ID file name does not exist, further comprising:
creating a default process ID file with a file name as the default process ID file name;
and writing the process ID of the target process into the default process ID file.
4. The method as claimed in claim 2, wherein when it is determined that the first process ID file having a file name of the default process ID file name exists and it is determined that the first process corresponding to the first process ID file does not exist, further comprising:
and updating the process ID of the target process into the first process ID file.
5. The method of claim 2, wherein the determining whether the first process corresponding to the first process ID file exists comprises:
reading a first process ID from the first process ID file;
calling a process opening function according to the first process ID;
and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
6. The method of claim 2, wherein the determining whether the first process corresponding to the first process ID file exists comprises:
reading a first process ID from the first process ID file;
acquiring at least one window handle of the first process according to the first process ID;
and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
7. The method of claim 1, wherein the temporary process ID filename comprises: the default process ID filename and temporary file suffix name.
8. The method of claim 7, wherein renaming the filename of the temporary process ID file to the default process ID filename comprises:
deleting a temporary file suffix name included in the file name of the temporary process ID file to form the default process ID file with the file name as the default process ID file name.
9. A process ID management apparatus, comprising:
the device comprises a receiving module, an obtaining module, a judging module and an executing module;
the receiving module is used for receiving a process ID file creating instruction aiming at a target process;
the acquisition module is used for determining a default process ID file name and a temporary process ID file name corresponding to the target process according to the process ID file creation instruction received by the receiving module;
the judging module is used for judging whether a first process using the default process ID file name acquired by the acquiring module exists or not;
the execution module is used for creating a temporary process ID file with the file name as the temporary process ID file name and writing the process ID of the target process into the temporary process ID file if the judgment result of the judgment module is positive;
the receiving module is further configured to receive a process ID file deletion instruction for the first process;
the execution module is further configured to delete the process ID file of the first process, and rename the file name of the temporary process ID file to the default process ID file name.
10. The apparatus of claim 9, wherein the determining module is configured to determine whether a first process ID file with a file name of the default process ID file name exists and determine whether a first process corresponding to the first process ID file exists, and if both of the determinations are yes, determine that the first process using the default process ID file name exists.
11. The apparatus of claim 10, wherein the execution module is further configured to create a default process ID file having a file name of the default process ID file name and write the process ID of the target process into the default process ID file when the determination module determines that the first process ID file having the file name of the default process ID file name does not exist.
12. The apparatus as claimed in claim 10, wherein the executing module is further configured to update the process ID of the target process into the first process ID file when the determining module determines that the first process ID file with the file name of the default process ID file exists and determines that the first process corresponding to the first process ID file does not exist.
13. The apparatus of claim 10, wherein the determining module comprises:
a first judgment unit;
the first judging unit is used for reading a first process ID from the first process ID file; calling a process opening function according to the first process ID; and judging whether the process opening function is successfully called, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
14. The apparatus of claim 10, wherein the determining module comprises:
a second judgment unit;
the second judging unit is configured to read a first process ID from the first process ID file; acquiring at least one window handle of the first process according to the first process ID; and judging whether each window corresponding to the at least one window handle exists or not through a window judgment function according to the at least one window handle, if so, judging that the first process exists, otherwise, judging that the first process does not exist.
15. The apparatus of claim 9, wherein the execution module comprises:
a renaming unit;
the renaming unit is configured to delete a temporary file suffix name included in the file name of the temporary process ID file when the temporary process ID file name includes the default process ID file name and the temporary file suffix name, and form the default process ID file having the file name of the default process ID file name.
16. A computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1 to 8.
CN201611162146.1A 2016-12-15 2016-12-15 Process ID management method and device and computer readable medium Active CN106775980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611162146.1A CN106775980B (en) 2016-12-15 2016-12-15 Process ID management method and device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611162146.1A CN106775980B (en) 2016-12-15 2016-12-15 Process ID management method and device and computer readable medium

Publications (2)

Publication Number Publication Date
CN106775980A CN106775980A (en) 2017-05-31
CN106775980B true CN106775980B (en) 2020-04-14

Family

ID=58892661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611162146.1A Active CN106775980B (en) 2016-12-15 2016-12-15 Process ID management method and device and computer readable medium

Country Status (1)

Country Link
CN (1) CN106775980B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968472A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Process processing method and device, storage medium and processor
CN112015525A (en) * 2019-05-29 2020-12-01 上海哔哩哔哩科技有限公司 Task process blocking management method
CN114095788A (en) * 2021-11-16 2022-02-25 深圳康佳电子科技有限公司 Wifi drive and firmware hot update processing method, device, terminal and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1119809B1 (en) * 1998-10-09 2003-05-07 Sun Microsystems, Inc. Process monitoring in a computer system
CN101630262A (en) * 2009-07-17 2010-01-20 北京数帅科技有限公司 Method for monitoring and controlling subprocess based on Linux system
CN104199734A (en) * 2014-09-12 2014-12-10 上海斐讯数据通信技术有限公司 Android smart terminal based application multi-run management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473918B2 (en) * 2008-01-21 2013-06-25 International Business Machines Corporation Method for singleton process control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1119809B1 (en) * 1998-10-09 2003-05-07 Sun Microsystems, Inc. Process monitoring in a computer system
CN101630262A (en) * 2009-07-17 2010-01-20 北京数帅科技有限公司 Method for monitoring and controlling subprocess based on Linux system
CN104199734A (en) * 2014-09-12 2014-12-10 上海斐讯数据通信技术有限公司 Android smart terminal based application multi-run management method and system

Also Published As

Publication number Publication date
CN106775980A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US20200050588A1 (en) Automatic file version verification within electronic mail
US9639558B2 (en) Image building
JP2004533041A (en) System and method for recovering a computer system damaged by a malicious computer program
WO2015078333A1 (en) Method for offline updating virtual machine images
CN106775980B (en) Process ID management method and device and computer readable medium
US7734914B1 (en) System and method for allowing applications to securely access files
EP1770512A2 (en) Method and system for updating software
CN104636172B (en) A kind of application upgrade method and apparatus
US20130232469A1 (en) System and method for automatically resolving dependencies of java archive files for use with maven
US20220244941A1 (en) System and method for downgrading applications
BRPI0709166A2 (en) creating offline resource models
CN106445476B (en) Code change information determination method and device and electronic equipment
CN107391112A (en) A kind of FileVersion detection method and its special purpose device
WO2013044794A1 (en) Terminal backup and recovery method
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN110442371B (en) Method, device and medium for releasing codes and computer equipment
CN106557572A (en) A kind of extracting method and system of Android application program file
CN112379890A (en) Data copying method of Whatsapp
CN106980516A (en) Information processor and method for managing resource
JP2009253847A (en) Information processing apparatus and method of controlling the same, program, and storage medium
CN113791809B (en) Application exception handling method and device and computer readable storage medium
CN113590179B (en) Plug-in detection method and device, electronic equipment and storage medium
WO2021227562A1 (en) Method and device for optimizing memory
JP2009163760A (en) Information processing apparatus, and method and program therefor
JP2009265962A (en) Operation log information management system

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