CN102163161B - A kind of process management method and device - Google Patents
A kind of process management method and device Download PDFInfo
- Publication number
- CN102163161B CN102163161B CN201110082611.1A CN201110082611A CN102163161B CN 102163161 B CN102163161 B CN 102163161B CN 201110082611 A CN201110082611 A CN 201110082611A CN 102163161 B CN102163161 B CN 102163161B
- Authority
- CN
- China
- Prior art keywords
- processes
- application program
- application
- unified
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 668
- 230000008569 process Effects 0.000 title claims abstract description 658
- 238000007726 management method Methods 0.000 title claims abstract description 89
- 238000012544 monitoring process Methods 0.000 description 7
- 230000004888 barrier function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000000737 periodic effect Effects 0.000 description 4
- 230000026676 system process Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 239000000725 suspension Substances 0.000 description 2
- 230000007123 defense Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000001824 photoionisation detection Methods 0.000 description 1
- 238000009781 safety test method Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
本发明公开了一种进程管理方法及装置,所述方法,包括:在所述应用程序运行时,收集所述应用程序的相关进程;将所述应用程序的相关进程合并为一个集合进行管理。本发明为用户提供了另一种更简便地管理当前系统的进程的方式,将整个系统的进程更友好地提供给用户,并通过这种显示方式使管理的可控性更强。
The invention discloses a process management method and device. The method includes: when the application program is running, collecting the relevant processes of the application program; merging the relevant processes of the application program into a set for management. The present invention provides another way for the user to more easily manage the process of the current system, provides the process of the whole system to the user more friendly, and makes the management more controllable through this display mode.
Description
技术领域technical field
本发明属于计算机领域,具体地说,涉及一种进程管理方法及装置。The invention belongs to the field of computers, and in particular relates to a process management method and device.
背景技术Background technique
进程是具有一定独立功能的一程序关于某一数据集合的一次运行活动。其可以申请和拥有系统资源,是操作系统动态执行的基本单元,在传统的操作系统中,进程既是基本的分配单元,也是基本的执行单元。A process is a running activity of a program with certain independent functions on a certain data set. It can apply for and own system resources, and is the basic unit of dynamic execution of the operating system. In a traditional operating system, a process is not only a basic allocation unit, but also a basic execution unit.
对应用程序来说,进程就像一个大容器。在应用程序被运行后,就相当于将应用程序装进容器里了,你可以往容器里加其他数据、文件,如:应用程序在运行时所需的变量数据、需要引用的DLL文件等。当应用程序被运行两次时,容器里的东西并不会被倒掉,系统会找一个新的进程容器来容纳它。To an application, a process is like a big container. After the application program is run, it is equivalent to loading the application program into the container, and you can add other data and files to the container, such as: variable data required by the application program at runtime, DLL files that need to be referenced, etc. When the application is run twice, the contents of the container will not be dumped, and the system will find a new process container to accommodate it.
进程可以分为系统进程和用户进程。系统进程是指用于完成操作系统的各种功能的进程,代表处于运行状态下的操作系统本身,是系统运行的基本条件;系统进程所承载的程序,包括:系统管理计算机个体和完成各种操作所必需的程序。用户进程是指所有由用户启动的进程,用户进程所承载的程序,包括:由用户开启、执行的额外程序,这些额外程序当然也包括用户不知情而自动运行的非法程序。Processes can be divided into system processes and user processes. The system process refers to the process used to complete various functions of the operating system, which represents the operating system itself in the running state and is the basic condition for the system to run; the programs carried by the system process include: the system manages individual computers and completes various programs necessary for operation. User processes refer to all processes initiated by users, and programs carried by user processes, including: additional programs opened and executed by users, and these additional programs of course also include illegal programs that are automatically run without the user's knowledge.
在关闭应用程序时,一般应用程序就将这个应用程序的进程关闭。但是现有的一些应用程序,如:PPS、pplive、uus等,在用户运行完这些应用程序将其关闭后,往往任务管理器中仍有这些应用程序的进程在运行,这就出现了应用程序关闭但是进程并不退出的情况。而这些进程依然占用着系统资源,当用户安装的类似的应用程序很多时,这些应用程序一旦启动就会对系统资源造成极大的消耗。如前所述,这类应用程序无法从传统的应用程序界面进行真正的退出,如果想关闭这些进程释放系统资源,只能通过手动方式将这些进程关闭,但是这种进程关闭操作对于不具有专业知识的普通用户来说是较为困难的。When the application program is closed, the general application program closes the process of the application program. However, some existing applications, such as: PPS, pplive, uus, etc., after the user finishes running these applications and closes them, often the processes of these applications are still running in the task manager, which leads to the appearance of application programs. The case where the process is closed but the process does not exit. However, these processes still occupy system resources. When there are many similar application programs installed by the user, once these application programs are started, they will cause a great consumption of system resources. As mentioned earlier, this type of application cannot be truly exited from the traditional application interface. If you want to close these processes to release system resources, you can only close these processes manually. It is more difficult for ordinary users of knowledge.
同一应用程序很可能同时运行于若干个数据集合上,也就是说同一程序可以对应多个进程,这样当上述程序关闭但是进程并不退出的这类应用程序的相关进程较多时,手动关闭这些进程的工作则变得非常复杂。首先要识别出哪些是属于这个应用程序的进程,这就要求用户具有相当的电脑水平而且要对这个应用程序非常熟悉,这对于普通用户甚至很多业内技术人员来说都是极其困难的。而即使能够找出该应用程序全部的进程,还需要手动一个个将这些进程关闭,这也使操作更加繁琐。如果此时需要关闭较多应用程序,而每个应用程序又对应了多个进程的情况下,这一工作是几乎不可能完成的。The same application is likely to run on several data sets at the same time, that is to say, the same program can correspond to multiple processes, so when there are many related processes of this type of application that the above program is closed but the process does not exit, manually close these processes work becomes very complicated. First of all, it is necessary to identify which processes belong to this application program, which requires the user to have considerable computer skills and be very familiar with this application program, which is extremely difficult for ordinary users and even many technical personnel in the industry. And even if all the processes of the application program can be found out, these processes need to be manually closed one by one, which makes the operation more cumbersome. If many application programs need to be closed at this time, and each application program corresponds to multiple processes, this work is almost impossible to complete.
另外,有些应用程序每扩展一次就会产生一个进程,这样这些应用程序在重复启动时就会打开多个进程,如果用户希望对这些进程进行管理,尤其是希望关闭这些应用程序时,则需要通过手动一个个的将其关闭,使操作变得非常繁琐。In addition, some applications will generate a process every time they are expanded, so that these applications will open multiple processes when they are repeatedly launched. If users want to manage these processes, especially when they want to close these applications, they need to pass Turning them off one by one manually makes the operation very cumbersome.
发明内容Contents of the invention
有鉴于此,本发明所要解决的技术问题是提供了一种进程管理方法及装置,使一般用户都可以无障碍地管理进程。In view of this, the technical problem to be solved by the present invention is to provide a process management method and device, so that ordinary users can manage processes without hindrance.
为了解决上述技术问题,本发明公开了一种进程管理方法,包括:在所述应用程序运行时,收集所述应用程序的相关进程;将所述应用程序的相关进程合并为一个集合进行管理。In order to solve the above technical problem, the present invention discloses a process management method, including: when the application program is running, collecting the relevant processes of the application program; combining the relevant processes of the application program into a set for management.
进一步地,将所述应用程序的相关进程合并为一个集合进行管理的步骤,包括:将所述应用程序的相关进程合并为一个集合进行显示。Further, the step of merging the related processes of the application programs into a set for management includes: merging the related processes of the application programs into a set for display.
进一步地,所述集合的名称以应用程序名或文档名称进行显示,所述集合的显示图标以应用程序图标进行显示。Further, the name of the collection is displayed as an application program name or document name, and the display icon of the collection is displayed as an application program icon.
进一步地,将所述应用程序的相关进程合并为一个集合进行管理的步骤,包括:将所述应用程序的相关进程合并为一个集合,通过关闭所述集合将所述相关进程关闭。Further, the step of merging the related processes of the application programs into a set for management includes: merging the related processes of the application programs into a set, and closing the related processes by closing the set.
进一步地,包括:接收对所述集合的关闭指示并将识别出的所述集合中的独立进程关闭,并将所述集合解散。Further, the method includes: receiving a closing instruction for the set, closing the identified independent processes in the set, and dissolving the set.
进一步地,将所述应用程序的相关进程合并为一个集合进行管理的步骤,包括:将所述应用程序的相关进程合并为一个集合,通过暂停/继续所述集合将所述相关进程暂停/继续。Further, the step of merging the related processes of the application programs into a set for management includes: merging the related processes of the application programs into a set, and suspending/continuing the related processes by suspending/continuing the set .
进一步地,包括:接收对所述集合的暂停/继续指示,并且将识别出的所述集合中的独立进程暂停/继续,将识别出的所述集合中的共享进程中与所述应用程序相关的线程暂停/继续。Further, the method includes: receiving a pause/continue instruction for the set, and suspending/continuing the identified independent process in the set, associating the identified shared process in the set with the application program The thread suspends/continues.
进一步地,所述应用程序的相关进程,包括:所述应用程序的主进程以及所述应用程序打开的与所述主进程同类的进程。Further, the related process of the application program includes: the main process of the application program and the same kind of process as the main process opened by the application program.
进一步地,收集所述应用程序的相关进程的步骤,包括:实时或周期监控各进程,并根据所述应用程序的主进程的进程名和/或路径名收集所述应用程序的相关进程。Further, the step of collecting the relevant processes of the application program includes: monitoring each process in real time or periodically, and collecting the relevant processes of the application program according to the process name and/or path name of the main process of the application program.
进一步地,所述应用程序的相关进程,包括:所述应用程序的主进程以及与所述主进程具有家族关系的一个或多个进程。Further, the related processes of the application program include: the main process of the application program and one or more processes having a family relationship with the main process.
进一步地,收集所述应用程序的相关进程的步骤,包括:预置一进程列表,其中保存所述应用程序的所有潜在的相关进程的标识;结合所述进程列表,实时或周期收集所述应用程序的相关进程。Further, the step of collecting related processes of the application program includes: presetting a process list, in which identifiers of all potential related processes of the application program are saved; combining the process list, collecting the application program in real time or periodically related processes of the program.
进一步地,包括:结合所述进程列表,实时或周期对未被所述进程列匹配的进程进行安全性检测。Further, the method includes: combining with the process list, performing security checks on processes not matched by the process list in real time or periodically.
进一步地,收集所述应用程序的相关进程的步骤,包括:实时或周期监控各进程,并根据所述应用程序的主进程及进程家族关系收集所述应用程序的相关进程。Further, the step of collecting the relevant processes of the application program includes: monitoring each process in real time or periodically, and collecting the relevant processes of the application program according to the main process of the application program and the process family relationship.
进一步地,包括:根据一未知进程的父进程标识/子进程标识找到其上层进程/下层进程,当判定所述上层进程/下层进程与所述主进程具有家族关系时,确定所述进程为所述应用程序的相关进程并收集记录所述进程。Further, it includes: finding the upper-level process/lower-level process of an unknown process according to the parent process ID/child process ID, and when it is determined that the upper-level process/lower-level process has a family relationship with the main process, determine that the process is the related processes of the above-mentioned application programs and collect and record the processes.
进一步地,包括:根据所述相关进程中一已知进程的子进程标识/父进程标识找到其未记录的下层进程/上层进程,确定所述下层进程/上层进程为所述应用程序的相关进程并收集记录。Further, it includes: finding an unrecorded lower-level process/upper-level process according to the child process ID/parent process ID of a known process in the related process, and determining the lower-level process/upper-level process as the related process of the application program and collect records.
为了解决上述技术问题,本发明还公开了一种进程管理装置,应用于一个或多个相关进程承载一应用程序的情况,包括:收集模块,用于在所述应用程序运行时收集所述应用程序的相关进程;管理模块,用于将所述应用程序的相关进程合并为一个集合进行管理。In order to solve the above technical problems, the present invention also discloses a process management device, which is applied to the situation where one or more related processes carry an application program, including: a collection module, used to collect the application program when the application program is running The related processes of the program; the management module is used to combine the related processes of the application program into a set for management.
进一步地,所述管理模块,用于将所述应用程序的相关进程合并为一个集合进行显示;所述集合名以应用程序名或文档名称进行显示,所述集合的显示图标以应用程序图标进行显示;Further, the management module is configured to combine the related processes of the application programs into a collection for display; the collection name is displayed as an application program name or document name, and the display icon of the collection is displayed as an application program icon. show;
进一步地,所述管理模块,用于将所述应用程序的相关进程合并为一个集合,通过关闭/暂停/继续所述集合将所述相关进程关闭/暂停/继续。Further, the management module is configured to combine related processes of the application programs into a set, and close/pause/continue the related processes by closing/pausing/continuing the set.
进一步地,所述管理模块,用于接收对所述集合的关闭指示并将识别出的所述集合中的独立进程关闭,并将所述集合解散;还进一步用于接收对所述集合的暂停/继续指示,并且将识别出的所述集合中的独立进程暂停/继续,将识别出的所述集合中的共享进程中与所述应用程序相关的线程暂停/继续。Further, the management module is configured to receive a shutdown instruction for the collection, close the identified independent processes in the collection, and disband the collection; and is further used for receiving a suspension of the collection /continue indication, and suspend/continue the identified independent process in the set, and suspend/continue the thread related to the application program in the identified shared process in the set.
进一步地,所述收集模块,用于实时或周期监控各进程,并根据所述应用程序的主进程的进程名和/或路径名收集所述应用程序的相关进程;所述应用程序的相关进程,包括:所述应用程序的主进程以及所述应用程序打开的与所述主进程同类的进程。Further, the collection module is configured to monitor each process in real time or periodically, and collect related processes of the application program according to the process name and/or path name of the main process of the application program; the related processes of the application program, Including: the main process of the application program and the same process as the main process opened by the application program.
进一步地,所述收集模块,用于实时或周期监控各进程并根据所述应用程序的主进程及进程家族关系收集所述应用程序的相关进程;还用于预置一进程列表,其中保存所述应用程序的所有潜在的相关进程的标识,结合所述进程列表,实时或周期收集所述应用程序的相关进程;所述应用程序的相关进程,包括:所述应用程序的主进程以及与所述主进程具有家族关系的一个或多个进程。Further, the collection module is configured to monitor each process in real time or periodically and collect related processes of the application program according to the main process of the application program and the process family relationship; it is also used to preset a process list, in which the The identification of all potential related processes of the application program, combined with the process list, collects the related processes of the application program in real time or periodically; the related processes of the application program include: the main process of the application program and the One or more processes with a family relationship to the main process.
进一步地,所述收集模块,用于根据一未知进程的父进程标识/子进程标识找到其上层进程/下层进程,当判定所述上层进程/下层进程与所述主进程具有家族关系时,确定所述进程为所述应用程序的相关进程并收集记录;还进一步用于根据所述相关进程中一已知进程的子进程标识/父进程标识找到其未记录的下层进程/上层进程,确定所述下层进程/上层进程为所述应用程序的相关进程并收集记录;还进一步用于结合所述进程列表,实时或周期对未被所述进程列表匹配的进程进行安全性检测。Further, the collection module is configured to find the upper-level process/lower-level process of an unknown process according to its parent process ID/child process ID, and when it is determined that the upper-level process/lower-level process has a family relationship with the main process, determine The process is a related process of the application and collects records; it is further used to find an unrecorded lower layer process/upper layer process according to the child process ID/parent process ID of a known process in the related process, and determine the The lower-level process/upper-level process is a related process of the application program and collects records; it is further used in combination with the process list to perform security detection on processes not matched by the process list in real time or periodically.
与现有的方案相比,本发明所获得的技术效果:Compared with existing solutions, the technical effects obtained by the present invention are:
1)对于整个系统而言,为用户提供了另一种更简便地管理当前系统的进程的方式,将整个系统的进程更友好地提供给用户,并通过这种显示方式使管理的可控性更强;1) For the whole system, it provides another way for the user to manage the current system process more easily, provides the process of the whole system to the user more friendly, and makes the management controllable through this display method stronger;
2)对于进程个体而言,用户不需要专业知识就可以进行无障碍地管理应用程序个体,并不需要了解应用程序个体与其相关进程的关系;2) For individual processes, users do not need professional knowledge to manage individual application programs without barriers, and do not need to understand the relationship between individual application programs and their related processes;
3)通过按同源和同类的关系对进程进行管理,使得进程可以按用户需求有目的的区分整理,通过对集合的管理大大简化了冗余的操作;3) By managing the processes according to the relationship of the same source and the same type, the processes can be purposefully distinguished and sorted according to user needs, and the redundant operation is greatly simplified through the management of the collection;
4)做到应用程序的真正关闭,并且不影响其他进程和应用程序的使用,在保持系统稳定运行的同时合理释放系统资源;4) Realize the real shutdown of the application without affecting the use of other processes and applications, and reasonably release system resources while maintaining the stable operation of the system;
5)使用独立的UI管理界面,同时使用应用程序名或者文档名称进行命名,使进程变得可读,更利于用户理解和管理;5) Use an independent UI management interface, and use the application name or document name to name the process to make the process readable and easier for users to understand and manage;
6)在进行进程管理的过程中还可以发现可疑进程并进行安全性检测,进一步保证系统的稳定;6) In the process of process management, suspicious processes can also be found and safety testing can be carried out to further ensure the stability of the system;
7)配合对进程进行同类的集合管理方式,使基于进程的暂停/继续管理的效率更高;配合对进程进行同源(依应用程序收集)的集合管理方式,可以将对单一进程的暂停/继续,实现到对整体应用程序的暂停/继续。7) Cooperate with the same collection management method for the process to make the process-based suspension/continuation management more efficient; cooperate with the collection management method of the same source (collected according to the application program) for the process, you can suspend/continue the management of a single process Resume, implements pause/resume to the overall application.
附图说明Description of drawings
图1为本发明第一、二实施例的方法流程图;Fig. 1 is the method flowchart of the first and second embodiments of the present invention;
图2为本发明步骤S14的应用实例的第一示意图;Fig. 2 is the first schematic diagram of the application example of step S14 of the present invention;
图3为本发明步骤S14的应用实例的第二示意图;FIG. 3 is a second schematic diagram of an application example of step S14 of the present invention;
图4为本发明第一实施例的应用实例的示意图;4 is a schematic diagram of an application example of the first embodiment of the present invention;
图5为本发明第二实施例的应用实例的示意图;5 is a schematic diagram of an application example of the second embodiment of the present invention;
图6为本发明第三实施例的装置结构图。Fig. 6 is a device structure diagram of the third embodiment of the present invention.
具体实施方式Detailed ways
以下将配合图式及实施例来详细说明本发明的实施方式,藉此对本发明如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。The implementation of the present invention will be described in detail below in conjunction with the drawings and examples, so that the realization process of how to use technical means to solve technical problems and achieve technical effects in the present invention can be fully understood and implemented accordingly.
本发明的核心构思在于:在所述应用程序运行时,收集所述应用程序的相关进程;将所述应用程序的相关进程合并为一个集合进行管理。应用于一个或多个相关进程承载一应用程序的情况,或者应用于多套进程的架构,即每对应用程序进行一次扩展就对应维护一套新进程。The core idea of the present invention is: when the application program is running, collect the relevant processes of the application program; combine the relevant processes of the application program into one set for management. It is applied to the situation where one or more related processes host an application, or to the architecture of multiple sets of processes, that is, each time an application is extended, a new set of processes is correspondingly maintained.
对将所述应用程序的相关进程合并为一个集合进行管理,包括以下两个部分:1)合并显示,即将所述应用程序的相关进程合并为一个集合进行显示;所述集合名以应用程序名或文档名称进行显示,所述集合的显示图标以应用程序图标进行显示;2)一键关闭/暂停/继续,即将所述应用程序的相关进程合并为一个集合,通过关闭/暂停/继续所述集合将所述相关进程关闭/暂停/继续。The management of merging the related processes of the application program into a set includes the following two parts: 1) merging and displaying, merging the related processes of the application program into a set for display; the name of the set is named after the application name or the document name, and the display icon of the set is displayed as an application icon; 2) One-click close/pause/continue, that is, to merge the related processes of the application into one set, and close/pause/continue the Set to close/pause/continue the related process.
文档名称,即指所述应用程序当前执行的任务的名称或者当前运行的文件的名称、当前播放的媒体的名称。The document name refers to the name of the task currently executed by the application program or the name of the currently running file or the name of the currently playing media.
应用程序名,即指所述应用程序的名称,这个名称可以是程序的中、英文名称,也可以是所述应用程序的可执行文件名。The name of the application program refers to the name of the application program, which can be the name of the program in Chinese or English, or the name of the executable file of the application program.
例如,一视频播放器运行时,关联多个进程,将这些进程合并为一个集合后,此时可以使用正在被播放的视频文件名(文档名称)来作为集合名,当然也可以使用这个视频播放器的名字(应用程序名)来作为集合名。For example, when a video player is running, it is associated with multiple processes. After merging these processes into a collection, you can use the name of the video file (document name) being played as the collection name. Of course, you can also use this video player The name of the device (application name) is used as the collection name.
相关进程可以包括两个层面,即同源进程和同类进程;Related processes can include two levels, namely homologous processes and similar processes;
1)同源进程1) Homologous process
相关进程,包括:所述应用程序的主进程以及与所述主进程具有家族关系的配套进程;其中,这些配套进程,包括:主进程直接或间接开启、调用的一个或多个进程,及直接或间接开启、调用所述主进程的一个或多个进程;需要说明的是,所述配套进程包括独立进程和/或共享进程;所述共享进程为同时被多个上层进程调用的进程,所述独立进程为仅被一个上层进程调用的进程;Related processes include: the main process of the application program and supporting processes that have a family relationship with the main process; wherein, these supporting processes include: one or more processes that are directly or indirectly opened and called by the main process, and directly Or indirectly open and call one or more processes of the main process; it should be noted that the supporting process includes an independent process and/or a shared process; the shared process is a process called by multiple upper-level processes at the same time, so The above-mentioned independent process is a process called by only one upper-level process;
2)同类进程2) Similar processes
相关进程,包括:所述应用程序的主进程、所述应用程序打开的与所述主进程同类的进程,当然还可以包括所述应用程序同类的应用程序打开的与所述主进程同类的进程;需要说明的是,与所述主进程同类的进程也可以包括独立进程和/或共享进程,例如,某个应用程序每运行一次即对应一进程,这个应用程序被连续运行3次,此时存在3个进程,这三个进程就是同类进程。Related processes include: the main process of the application, the process opened by the application of the same type as the main process, and of course, the process of the same type as the main process opened by the application of the same type ; It should be noted that processes of the same type as the main process may also include independent processes and/or shared processes. For example, each time an application is run, it corresponds to a process. This application is run continuously for 3 times. At this time There are 3 processes, and these three processes are the same kind of process.
以下以第一实施例对本发明的方法中针对同源进程的管理进行说明。应用于一个或多个相关进程承载一应用程序的情况,上述应用程序主要是指用户进程所承载的程序。如图1所示,执行如下操作:The management of homologous processes in the method of the present invention will be described below with the first embodiment. Applied to the situation where one or more related processes carry an application program, the above-mentioned application program mainly refers to a program carried by a user process. As shown in Figure 1, perform the following operations:
步骤S 11,在所述应用程序运行时,收集所述应用程序的相关进程;Step S11, when the application program is running, collect the relevant process of the application program;
相关进程,包括:所述应用程序的主进程以及与所述主进程具有家族关系的配套进程;其中,这些配套进程,包括:主进程直接或间接开启、调用的一个或多个进程,及直接或间接开启、调用所述主进程的一个或多个进程;需要说明的是,所述配套进程包括独立进程和/或共享进程。Related processes include: the main process of the application program and supporting processes that have a family relationship with the main process; wherein, these supporting processes include: one or more processes that are directly or indirectly opened and called by the main process, and directly Or indirectly start and call one or more processes of the main process; it should be noted that the supporting processes include independent processes and/or shared processes.
对于所述应用程序的相关进程的收集,可以由以下方式单独或者结合地实现,本发明并不限于此:The collection of the relevant processes of the application program can be realized in the following ways alone or in combination, and the present invention is not limited thereto:
1)预置一进程列表,其中保存所述应用程序的所有潜在的相关进程的标识;结合所述列表实时或周期收集所述应用程序的相关进程;1) Presetting a process list, wherein the identifiers of all potential related processes of the application are stored; combining the list to collect the related processes of the application in real time or periodically;
具体来说,所述相关进程的标识是PID(进程标识);所有潜在的相关进程,是指与应用程序相关的全部可能的进程,不论其当前是否已随应用程序启动,这种潜在的相关进程可以由技术人员根据经验及统计数据进行穷举并需要不断的更新维护;Specifically, the identifier of the related process is PID (process identification); all potential related processes refer to all possible processes related to the application program, no matter whether they are currently started with the application program, this potential related process Processes can be exhaustively enumerated by technicians based on experience and statistical data and need to be constantly updated and maintained;
实时或周期监控系统中出现的进程,获取这些进程的PID,通过进程列表匹配来识别系统中出现的进程中哪些是所述应用程序的相关进程并进行收集记录。另外,对于未被所述进程列表匹配的系统中出现的进程,实时或周期进行安全性检测,进一步保证系统的安全性。The processes appearing in the system are monitored in real time or periodically, the PIDs of these processes are obtained, and which of the processes appearing in the system are related to the application program is identified through process list matching and collected and recorded. In addition, for the processes that appear in the system that are not matched by the process list, security checks are performed in real time or periodically to further ensure the security of the system.
2)实时或周期监控各进程,并根据所述应用程序的主进程及进程家族关系收集所述应用程序的相关进程;2) monitoring each process in real time or periodically, and collecting related processes of the application program according to the main process of the application program and the process family relationship;
具体来说,通过实时或者周期监控发现一个新的进程时,根据这个进程的父进程标识/子进程标识找到其上层进程/下层进程,根据这个上层进程/下层进程逐级再向上层/下层寻找,最终找到主进程,从而可以判断出所述上层进程/下层进程与所述主进程是否具有家族关系,在具有家族关系时确定所述新的进程为所述应用程序的相关进程并收集记录所述进程;Specifically, when a new process is discovered through real-time or periodic monitoring, the upper-level process/lower-level process is found according to the parent process ID/child process ID of the process, and then the upper-level/lower-level process is searched step by step according to the upper-level process/lower-level process , and finally find the main process, so that it can be judged whether the upper process/lower process has a family relationship with the main process, and if there is a family relationship, determine that the new process is a related process of the application program and collect the records process;
或者,通过实时或者周期监控发现一个新的进程时,根据这个进程的父进程标识/子进程标识找到其上层进程/下层进程,根据一家族关系列表可以直接获知这个上层进程/下层进程与所述主进程是否具有家族关系,在具有家族关系时直接确定所述新的进程为所述应用程序的相关进程并收集记录所述进程。Or, when a new process is found through real-time or periodic monitoring, the upper-level process/lower-level process can be found according to the parent process ID/child process ID of the process, and the relationship between the upper-level process/lower-level process and the above-mentioned process can be directly known according to a family relationship list. Whether the main process has a family relationship, if there is a family relationship, directly determine that the new process is a related process of the application program and collect and record the process.
或者,通过实时或者周期监控发现有新进程出现时,则触发对已经收集记录的所述应用程序的所有相关进程进行检测,根据所述各相关进程的子进程标识检测是否存在未记录的下层进程,如果存在,则可以确定这个下层进程就是所述应用程序的相关进程并收集记录所述下层进程。Or, when a new process is found to appear through real-time or periodic monitoring, it triggers the detection of all related processes of the application program that have collected records, and detects whether there is an unrecorded lower-level process according to the sub-process identifier of each related process , if it exists, it can be determined that this lower-level process is a related process of the application program, and the lower-level process is collected and recorded.
或者,通过实时或者周期对已经收集记录的所述应用程序的所有相关进程进行检测,根据所述主进程及其上层进程的父进程标识找到其未记录的上层进程,确定所述上层进程为所述应用程序的相关进程并收集记录。Or, by detecting all relevant processes of the application program that have been collected and recorded in real time or periodically, find the unrecorded upper-level process according to the parent process identification of the main process and its upper-level process, and determine that the upper-level process is all process related to the application described above and collect records.
需要说明的是,在1)中,在进程列表未更新但是出现新的进程时,可以结合2)对新出现的进程进行识别收集,以保证合并显示的准确性;在2)中,也可以将1)的进程列表用作家族关系列表,作为判断是否具有家族关系和是否记录的依据,以保证合并显示的准确性;It should be noted that, in 1), when the process list is not updated but a new process appears, 2) can be combined to identify and collect the new process to ensure the accuracy of the merged display; in 2), it can also be Use the process list of 1) as the family relationship list, as the basis for judging whether there is a family relationship and whether it is recorded, so as to ensure the accuracy of the merged display;
步骤S 12,在UI管理界面上将所述应用程序的相关进程合并显示为一个集合;Step S12, merging and displaying the related processes of the application programs as a set on the UI management interface;
对于此应用程序的相关进程一般都具有相同的一种属性或者最能代表这些相关进程的名字,例如相同或者相似的进程名,或者进程名中包含相同或者相似的部分,或者是应用程序名、文档名称,可以使用这些名字作为集合的名字将这些相关进程合并显示,集合的图标以应用程序图标进行显示,当然本发明并不限于此;需要说明的是,这些相关进程依然是保持在各自原有的资源上运行,仅是在UI管理界面上将其合并显示为一个名字,从而视为一个统一进程(集合)进行管理,这样对于一般用户都可以无障碍的了解和管理进程,并了解应用程序与其相关进程的对应关系;The related processes of this application generally have the same attribute or the name that best represents these related processes, such as the same or similar process name, or the same or similar part in the process name, or the application name, Document name, these names can be used as the name of the collection to display these related processes together, and the icon of the collection is displayed as an application program icon. Of course, the present invention is not limited to this; Some resources are run on the UI management interface and are only merged and displayed as a name, so that they can be managed as a unified process (collection), so that ordinary users can understand and manage the process without barriers, and understand the application The correspondence between the program and its related processes;
步骤S13,接收对所述应用程序的关闭/暂停/继续指示或者所合并显示的集合的关闭/暂停/继续指示;Step S13, receiving a close/pause/continue instruction for the application or a close/pause/continue instruction for the merged display set;
对于一些应用程序,其会对应多个进程,这样作为普通用户想通过进程关闭应用程序是极其困难的;For some applications, it will correspond to multiple processes, so it is extremely difficult for ordinary users to close the application through the process;
对于一些应用程序,存在退出程序但进程仍然开启的情况,这样用户通过程序界面的退出是无法真正退出的;用户认为程序已经关闭,但是其实这些程序的进程仍然运行并占用大量系统资源;而且即使用户知道这些程序的进程仍然运行,但是如果这些程序与进程存在上述一对多的关系时,限于技术原因,普通用户也无法获知哪些进程的;For some applications, there is a situation that the program is exited but the process is still open, so that the user cannot really exit through the exit of the program interface; the user thinks that the program has been closed, but in fact the process of these programs is still running and takes up a lot of system resources; and even Users know that the processes of these programs are still running, but if the above-mentioned one-to-many relationship exists between these programs and processes, due to technical reasons, ordinary users cannot know which processes;
通过步骤S11-S12的操作,用户如果想关闭所述应用程序,可以进入合并显示各应用程序相关进程的UI管理界面上,将这个应用程序合并显示的进程直接点击关闭,可以直接将所述应用程序的相关进程一起关闭,使得用户不需要专业知识就可以非常简便地将这个应用程序的相关进程进行关闭,解决了用户无法找到所述应用程序的相关进程的困难以及将这些进程一个个关闭的麻烦;Through the operation of steps S11-S12, if the user wants to close the application program, he can enter the UI management interface that combines and displays the relevant processes of each application program, and directly clicks to close the process of the application program combined display, and the application program can be directly closed. The relevant processes of the program are closed together, so that the user can easily close the relevant processes of the application without professional knowledge, which solves the difficulty that the user cannot find the relevant processes of the application and closes these processes one by one trouble;
步骤S14,将识别出的所述应用程序的相关进程中的独立进程关闭/暂停/继续;Step S14, closing/suspending/continuing the independent process among the identified related processes of the application program;
1)接收对所述集合的关闭指示并将识别出的所述集合中的独立进程关闭,并在UI管理界面上将所述集合解散;1) receiving a closing instruction for the collection and closing the identified independent process in the collection, and disbanding the collection on the UI management interface;
2)接收对所述集合的暂停/继续指示,并且将识别出的所述集合中的独立进程暂停/继续,将识别出的所述集合中的共享进程中与所述应用程序相关的线程暂停/继续,并在UI管理界面上将所述集合显示为暂停/运行状态;可以将暂停的进程或线程的当前处理的数据进行保存,在继续进程或线程时读取数据由暂停点继续运行;也可以将暂停的进程或线程的当前处理的数据丢弃,在继续进程或线程时由初始状态开始重新运行,例如,在通过360浏览器打开一网页时,可以通过这种方式使页面的打开暂停/继续。2) receiving a suspend/continue instruction for the set, and suspending/continuing the identified independent processes in the set, and suspending threads related to the application program in the identified shared processes in the set /Continue, and display the collection as a pause/running state on the UI management interface; the currently processed data of the paused process or thread can be saved, and the read data will continue to run from the pause point when the process or thread is continued; It is also possible to discard the currently processed data of the suspended process or thread, and start rerunning from the initial state when continuing the process or thread. For example, when a web page is opened through a 360 browser, the opening of the page can be suspended in this way /continue.
因为所述应用程序的相关进程中可能含有共享进程,如果将这些共享进程也关闭会影响其他应用程序的运行,因此仅识别所述应用程序的相关进程中的独立进程将其关闭即可;所述应用程序的相关进程中的共享进程保持开启,但是共享进程中关于所述独立进程的线程结束;此时可以认为将所述应用程序完全关闭,将合并显示的集合关闭。这样从而做到应用程序的真正关闭,并且不影响其他进程和应用程序的使用,在保持系统稳定运行的同时合理释放系统资源。另外,识别独立进程的操作可以在步骤S13接收到关闭指示后执行,也可以在之前执行,本发明并不限于此。Because the related processes of the application program may contain shared processes, if these shared processes are also closed, it will affect the operation of other applications, so it is only necessary to identify the independent processes in the related processes of the application program and close them; The shared process in the related process of the application program remains open, but the thread about the independent process in the shared process ends; at this time, it can be considered that the application program is completely closed, and the combined display set is closed. In this way, the application program can be truly closed without affecting the use of other processes and application programs, and the system resources can be reasonably released while maintaining the stable operation of the system. In addition, the operation of identifying an independent process may be performed after receiving the shutdown instruction in step S13, or may be performed before, and the present invention is not limited thereto.
以下特别以一个应用实例来解释本发明的步骤S14。如图2所示,应用程序A对应进程A和进程C,合并显示为集合A;应用程序B对应进程B和进程C,合并显示为集合B。如果用户希望关闭应用程序A,则进入UI管理界面点击关闭集合A,如图3所示,此时识别后关闭进程A,保持进程C的开启,因为进程C仍然承载应用程序B,但是进程C中关于进程A部分的线程结束。进程C此时仅被进程B调用,所以其已成为独立进程,此时如果用户希望关闭应用程序B,则进入UI管理界面点击关闭集合B,此时进程B和进程C均关闭。Step S14 of the present invention is explained below in particular with an application example. As shown in FIG. 2 , application A corresponds to process A and process C, and is combined and displayed as set A; application B corresponds to process B and process C, and is combined and displayed as set B. If the user wants to close application program A, then enter the UI management interface and click to close collection A, as shown in Figure 3, at this time, process A is closed after identification, and process C is kept open, because process C still carries application program B, but process C The thread in the part about process A ends. Process C is only called by process B at this time, so it has become an independent process. At this time, if the user wants to close application B, then enter the UI management interface and click to close set B. At this time, both process B and process C are closed.
以下再以一个应用实例来解释本发明的第一实施例的整体流程,如图4所示。Hereinafter, an application example is used to explain the overall process of the first embodiment of the present invention, as shown in FIG. 4 .
本发明的应用场景如下:The application scenarios of the present invention are as follows:
在360安全卫士运行时,会开启360安全卫士主程序的进程(360safe.exe),这个进程还会开启实时监控程序的进程(360tray.exe),而这个实时监控程序的进程还会开启主动防御服务的进程(ZhuDongFangYu.exe);但是对于普通用户而言,这三个进程的含义和作用基本不可读,而且通过现有的windows任务管理器的方式浏览到这三个进程时,普通用户也不会知道这三个进程间的关联性。When 360 Security Guard is running, it will start the process of the main program of 360 Security Guard (360safe.exe), and this process will also start the process of the real-time monitoring program (360tray.exe), and the process of this real-time monitoring program will also open the active defense service process (ZhuDongFangYu.exe); but for ordinary users, the meaning and function of these three processes are basically unreadable, and when browsing these three processes through the existing windows task manager, ordinary users also The correlation between these three processes will not be known.
下面,按本发明的方式进行进程管理:Below, carry out process management by the mode of the present invention:
首先,本发明根据预先配置的保存有360安全卫士的全部相关进程的列表,可以收集到360安全卫士一共开启了三个进程:主进程360safe.exe以及配套进程360tray.exe和ZhuDongFangYu.exe。First, according to the pre-configured list of all related processes of 360 Security Guard, it can be collected that 360 Security Guard has opened three processes: the main process 360safe.exe and supporting processes 360tray.exe and ZhuDongFangYu.exe.
然后,将这三个进程360safe.exe、360tray.exe和ZhuDongFangYu.exe在UI管理界面上合并显示为一个集合“360安全卫士”,并使用应用程序“360安全卫士”的图标进行显示;这样对于一般用户都可以无障碍的看到360安全卫士的进程,并也可以了解到360安全卫士与进程的对应关系。Then, the three processes 360safe.exe, 360tray.exe and ZhuDongFangYu.exe are merged and displayed on the UI management interface as a collection "360 Security Guard", and the icon of the application "360 Security Guard" is used for display; General users can see the process of 360 Security Guard without barriers, and can also understand the corresponding relationship between 360 Security Guard and the process.
这时,如果用户想将360安全卫士关闭,只需要在UI管理界面上点击集合“360安全卫士”的图标发出关闭指示;识别360安全卫士的相关进程中的三个进程360safe.exe、360tray.exe和ZhuDongFangYu.exe都是独立进程,直接将它们关闭不会影响到其它应用程序的运行,则将这三个进程关闭,并在UI管理界面上将合并显示的集合“360安全卫士”关闭。At this time, if the user wants to close 360 Security Guard, he only needs to click the icon of the collection "360 Security Guard" on the UI management interface to issue a shutdown instruction; identify the three processes 360safe.exe and 360tray among the related processes of 360 Security Guard. exe and ZhuDongFangYu.exe are independent processes, and closing them directly will not affect the operation of other applications, so close these three processes, and close the combined display "360 Security Guard" on the UI management interface.
需要说明的是,上述关闭的操作,针对于退出程序但进程仍然开启的一类应用程序会特别有意义。因为这类应用程序无法从传统的应用程序界面进行真正的退出,只能通过手动关闭进程从而释放进程所占用的系统资源。但是这种进程关闭操作对于不具有专业知识的普通用户来说是较为困难的,尤其当这类应用程序的相关进程较多时,普通用户很难识别出全部的相关进程而将其一一关闭,即使具有专业知识的技术人员,识别出这些进程并将其一一关闭也是较困难的。而利用本发明的方案就可以轻易的完成这种关闭操作,对于普通用户甚至技术人员管理进程带来了极大的便利。It should be noted that the above closing operation is particularly meaningful for a class of applications that exit the program but still open the process. Because this type of application program cannot really exit from the traditional application program interface, the system resources occupied by the process can only be released by manually closing the process. However, this kind of process closing operation is relatively difficult for ordinary users who do not have professional knowledge, especially when there are many related processes of this type of application, it is difficult for ordinary users to identify all related processes and close them one by one. Identifying these processes and shutting them down individually is difficult, even for a skilled technician. However, the closing operation can be easily completed by using the solution of the present invention, which brings great convenience to ordinary users and even technicians to manage the process.
以下以第二实施例对本发明的方法中针对同类进程的管理进行说明。应用于多套进程的架构,即每对应用程序进行一次扩展就对应维护一套新进程。上述应用程序主要是指用户进程所承载的程序。可参考图1所示,执行如下操作:The management of similar processes in the method of the present invention will be described below with the second embodiment. The architecture applied to multiple sets of processes, that is, each time an application is extended, a new set of processes is correspondingly maintained. The above-mentioned application program mainly refers to a program carried by a user process. Refer to Figure 1 and perform the following operations:
步骤S21,在所述应用程序运行时,收集所述应用程序的相关进程;Step S21, when the application program is running, collect the relevant process of the application program;
相关进程,包括:所述应用程序的主进程、所述应用程序打开的与所述主进程同类的进程以及与所述应用程序同类的应用程序打开的与所述主进程同类的进程;需要说明的是,与所述主进程同类的进程也可以包括独立进程和/或共享进程。Related processes include: the main process of the application program, the process opened by the application program of the same type as the main process, and the process of the same type as the main process opened by the application program of the same type as the application program; explanation is required Notably, processes of the same type as the main process may also include independent processes and/or shared processes.
对于所述应用程序的相关进程的收集,可以由以下方式实现,本发明并不限于此:The collection of the relevant process of the application program can be realized in the following manner, and the present invention is not limited thereto:
实时或周期监控各进程,并根据所述应用程序的主进程的进程名和/或路径名收集所述应用程序的相关进程;具体来说,有些应用程序在重复启动时会打开多个进程,例如:所述应用程序在运行时,对应一个主进程;此时用户再次启动所述应用程序,该应用程序会再启动一个进程,一般其与所述主进程同名和/或同路径,而这两者为同类进程;此时通过实时或者周期监控系统中的各进程,根据所述应用程序的主进程的进程名或路径名,收集所述应用程序打开的其他同名和/或同路径的进程,这些进程就是所述应用程序的相关进程。Monitor each process in real time or periodically, and collect related processes of the application program according to the process name and/or path name of the main process of the application program; specifically, some applications will open multiple processes when they are started repeatedly, such as : When the application program is running, it corresponds to a main process; at this time, the user starts the application program again, and the application program will start another process, generally with the same name and/or path as the main process, and the two Those are similar processes; at this time, through real-time or periodic monitoring of each process in the system, according to the process name or path name of the main process of the application, collect other processes with the same name and/or the same path opened by the application, These processes are the relevant processes of the application program.
步骤S22,在UI管理界面上将所述应用程序的相关进程合并显示为一个集合;Step S22, merging and displaying the related processes of the application programs as a set on the UI management interface;
对于此应用程序的相关进程一般都具有相同的一种属性或者最能代表这些相关进程的名字,例如相同或者相似的进程名,或者进程名中包含相同或者相似的部分,或者是应用程序名、文档名称,可以使用这些名字作为集合的名字将这些相关进程合并显示,集合的图标以应用程序图标进行显示,当然本发明并不限于此;需要说明的是,这些相关进程依然是保持在各自原有的资源上运行,仅是在UI管理界面上将其合并显示为一个名字,从而视为一个统一进程进行管理,这样对于一般用户都可以无障碍的了解和管理进程,并了解应用程序与其相关进程的对应关系;The related processes of this application generally have the same attribute or the name that best represents these related processes, such as the same or similar process name, or the same or similar part in the process name, or the application name, Document name, these names can be used as the name of the collection to display these related processes together, and the icon of the collection is displayed as an application program icon. Of course, the present invention is not limited to this; Running on some resources, it is only merged and displayed as a name on the UI management interface, so as to be managed as a unified process, so that general users can understand and manage the process without barriers, and understand the application related to it Process correspondence;
步骤S23,接收对所述应用程序的关闭/暂停/继续指示或者所合并显示的集合的关闭/暂停/继续指示;Step S23, receiving a close/pause/continue instruction for the application or a close/pause/continue instruction for the merged display set;
对于一些应用程序,存在每次扩展时都会打开一套新进程的情况,如果打开多次应用程序时,会同时出现多套相同的进程;此时如果用户希望将这个应用程序的多个界面一起关闭/暂停/继续,则必须一个个的手动关闭/暂停/继续这些应用程序;For some applications, there is a situation that a new process will be opened every time the application is expanded. If the application is opened multiple times, multiple sets of the same process will appear at the same time; Close/pause/continue, you must manually close/pause/continue these applications one by one;
通过步骤S21-S22的操作,用户如果想关闭多次扩展的这些应用程序,可以进入合并显示所述应用程序的相关进程的UI管理界面上,将这个应用程序合并显示的集合直接点击关闭,可以直接将所述应用程序的相关进程一起关闭,使得用户可以非常简便地将这些应用程序一起进行关闭,省去了用户一个个关闭的麻烦;Through the operations of steps S21-S22, if the user wants to close these applications that have been extended multiple times, he can enter the UI management interface that combines and displays the related processes of the applications, and directly clicks to close the collection of applications that are displayed in combination, and can Directly close the relevant processes of the application programs together, so that the user can easily close these application programs together, saving the user the trouble of closing them one by one;
步骤S24,将识别出的所述应用程序的相关进程中的独立进程关闭/暂停/继续;Step S24, closing/suspending/continuing the independent process among the identified related processes of the application program;
1)接收对所述集合的关闭指示并将识别出的所述集合中的独立进程关闭,并在UI管理界面上将所述集合解散;1) receiving a closing instruction for the collection and closing the identified independent process in the collection, and disbanding the collection on the UI management interface;
2)接收对所述集合的暂停/继续指示,并且将识别出的所述集合中的独立进程暂停/继续,将识别出的所述集合中的共享进程中与所述应用程序相关的线程暂停/继续,并在UI管理界面上将所述集合显示为暂停/运行状态;可以将暂停的进程或线程的当前处理的数据进行保存,在继续进程或线程时读取数据由暂停点继续运行;也可以将暂停的进程或线程的当前处理的数据丢弃,在继续进程或线程时由初始状态开始重新运行。2) receiving a suspend/continue instruction for the set, and suspending/continuing the identified independent processes in the set, and suspending threads related to the application program in the identified shared processes in the set /Continue, and display the collection as a pause/running state on the UI management interface; the currently processed data of the paused process or thread can be saved, and the read data will continue to run from the pause point when the process or thread is continued; It is also possible to discard the currently processed data of the suspended process or thread, and start rerunning from the initial state when continuing the process or thread.
因为所述应用程序的相关进程中可能含有共享进程,如果将这些共享进程也关闭会影响其他应用程序的运行,因此仅识别所述应用程序的相关进程中的独立进程将其关闭即可;所述应用程序的相关进程中的共享进程保持开启,但是共享进程中关于所述独立进程的线程结束;此时可以认为将所述应用程序完全关闭,将合并显示的集合关闭。这样从而做到应用程序的真正关闭,并且不影响其他进程和应用程序的使用,在保持系统稳定运行的同时合理释放系统资源。另外,识别独立进程的操作可以在步骤S23接收到关闭指示后执行,也可以在之前执行,本发明并不限于此。可参考步骤S14的应用实例。Because the related processes of the application program may contain shared processes, if these shared processes are also closed, it will affect the operation of other applications, so it is only necessary to identify the independent processes in the related processes of the application program and close them; The shared process in the related process of the application program remains open, but the thread about the independent process in the shared process ends; at this time, it can be considered that the application program is completely closed, and the combined display set is closed. In this way, the application program can be truly closed without affecting the use of other processes and application programs, and the system resources can be reasonably released while maintaining the stable operation of the system. In addition, the operation of identifying an independent process may be performed after receiving the closing instruction in step S23, or may be performed before, and the present invention is not limited thereto. Refer to the application example of step S14.
以下再以一个应用实例来解释本发明的第二实施例的整体流程,如图5所示。Hereinafter, an application example is used to explain the overall process of the second embodiment of the present invention, as shown in FIG. 5 .
本发明的应用场景如下:The application scenarios of the present invention are as follows:
用户通过基于Webkit和IE双内核的360浏览器初始打开一个网页时,会开启三个相同进程名的360浏览器的进程(360chrome.exe),分别对应于扩展程序“收藏夹”、插件“shockwave flash”和打开的当前网页;而用户通过360浏览器通过标签方式再连续打开三个网页,出现三个相同进程名的360浏览器的进程(360chrome.exe),每个进程对应于一个新打开的网页。此时如果用户希望关闭360浏览器的页面时,还需要一个个的关闭这些页面。When a user initially opens a web page through the 360 browser based on Webkit and IE dual-core, three 360 browser processes (360chrome.exe) with the same process name will be opened, corresponding to the extension program "Favorites", the plug-in "shockwave flash” and the opened current webpage; and the user opens three webpages in a row through the 360 browser through tabs, and three 360 browser processes (360chrome.exe) with the same process name appear, and each process corresponds to a newly opened webpage. At this time, if the user wishes to close the pages of the 360 browser, they also need to close these pages one by one.
下面,按本发明的方式进行进程管理:Below, carry out process management by the mode of the present invention:
首先,本发明根据360浏览器的进程名360chrome.exe,可以收集到360浏览器多次开启的其他进程:360chrome.exe。First, according to the process name 360chrome.exe of the 360 browser, the present invention can collect other processes that the 360 browser has opened multiple times: 360chrome.exe.
然后,将这些进程360chrome.exe在UI管理界面上合并显示为一个集合“360浏览器”,并使用360浏览器的图标进行显示;这样对于一般用户都可以无障碍的看到360浏览器的整体进程。Then, these processes 360chrome.exe are merged and displayed on the UI management interface as a set "360 browser", and displayed using the icon of 360 browser; in this way, general users can see the whole of 360 browser without barriers process.
这时,如果用户想将360浏览器关闭,只需要在UI管理界面上点击集合“360浏览器”的图标发出关闭指示;识别360浏览器的相关进程的全部六个360chrome.exe进程,这些进程都是独立进程,直接将它们关闭不会影响到其它应用程序的运行,则将这六个360chrome.exe进程关闭,并在UI管理界面上将合并显示的集合“360浏览器”关闭。At this time, if the user wants to close the 360 browser, he only needs to click the icon of the set "360 browser" on the UI management interface to issue a shutdown instruction; identify all six 360chrome.exe processes related to the 360 browser, and these processes They are all independent processes, and closing them directly will not affect the operation of other applications, then close these six 360chrome.exe processes, and close the combined display "360 browser" on the UI management interface.
以下以第三实施例对本发明的装置进行说明,应用于一个或多个相关进程承载一应用程序的情况,或者应用于多套进程的架构,即每对应用程序进行一次扩展就对应维护一套新进程。上述应用程序主要是指用户进程所承载的程序。The device of the present invention is described below with the third embodiment, which is applied to the situation where one or more related processes carry an application program, or to the architecture of multiple sets of processes, that is, each time an application is extended, a set of corresponding maintenance is maintained. new process. The above-mentioned application program mainly refers to a program carried by a user process.
如图6所示,为一种进程管理装置,与所述应用程序运行于同一系统中。所述进程管理装置,包括:收集模块1和管理模块2;As shown in FIG. 6 , it is a process management device, which runs in the same system as the application program. The process management device includes: a collection module 1 and a management module 2;
收集模块1,用于在所述应用程序运行时收集所述应用程序的相关进程;A collection module 1, configured to collect related processes of the application when the application is running;
管理模块2,用于提供一UI(用户界面)管理界面将所述应用程序的相关进程合并为一个集合进行管理;The management module 2 is used to provide a UI (user interface) management interface to merge the relevant processes of the application programs into a set for management;
具体来说,管理模块2,可以用于“合并显示”——即,将所述应用程序的相关进程合并为一个集合进行显示;所述集合名以应用程序名或文档名称进行显示,所述集合的显示图标以应用程序图标进行显示;Specifically, the management module 2 can be used for "merging and displaying"—namely, merging the related processes of the application programs into a collection for display; the collection name is displayed with the application name or document name, and the The display icon of the collection is displayed as an application icon;
管理模块2,还可以用于“一键关闭/暂停/继续”——即,将所述应用程序的相关进程合并为一个集合,通过关闭/暂停/继续所述集合将所述相关进程关闭/暂停/继续;具体来说,在接收对所述应用程序的关闭指示或者所合并显示的进程的关闭指示时,识别所述应用程序的相关进程中的独立进程,将所述独立进程关闭,并在UI管理界面将合并显示的集合解散;在接收对所述集合的暂停/继续指示,并且将识别出的所述集合中的独立进程暂停/继续,将识别出的所述集合中的共享进程中与所述应用程序相关的线程暂停/继续;可以将暂停的进程或线程的当前处理的数据进行保存,在继续进程或线程时读取数据由暂停点继续运行;也可以将暂停的进程或线程的当前处理的数据丢弃,在继续进程或线程时由初始状态开始重新运行。The management module 2 can also be used for "one-click closing/pausing/continuing"—that is, merging the related processes of the application program into a set, and closing/pausing/continuing the set to close/close the related processes Pausing/continuing; specifically, when receiving a closing instruction for the application program or a closing instruction for the merged and displayed process, identifying an independent process among the related processes of the application program, closing the independent process, and On the UI management interface, the combined display collection will be dissolved; after receiving the pause/continue instruction for the collection, and suspending/continuing the identified independent process in the collection, the identified shared process in the collection Suspend/continue the thread related to the application in the application program; the currently processed data of the suspended process or thread can be saved, and the read data can continue to run from the suspended point when the process or thread is continued; the suspended process or The currently processed data of the thread is discarded, and the process or thread is resumed from the initial state when continuing the process or thread.
收集模块1在针对两种不同的应用场景时,包括以下两个层面的收集:Collection module 1 includes the following two levels of collection for two different application scenarios:
1)应用于多套进程的架构,即对应用程序每进行一次扩展就对应维护一套新进程。所述应用程序的相关进程,包括:所述应用程序的主进程以及所述应用程序打开的与所述主进程同类的进程。1) The architecture applied to multiple sets of processes, that is, each time an application is extended, a new set of processes is correspondingly maintained. The related process of the application program includes: the main process of the application program and the same process as the main process opened by the application program.
收集模块1,实时或周期监控各进程,并根据所述应用程序的主进程的进程名和/或路径名收集所述应用程序的相关进程。The collection module 1 monitors each process in real time or periodically, and collects related processes of the application program according to the process name and/or path name of the main process of the application program.
2)应用于一个或多个相关进程承载一应用程序的情况。所述应用程序的相关进程,包括:所述应用程序的主进程以及与所述主进程具有家族关系的一个或多个下层进程。2) Applied to the situation where one or more related processes carry an application program. The related processes of the application program include: the main process of the application program and one or more lower-level processes having a family relationship with the main process.
收集模块1,可以用于预置一进程列表,其中保存所述应用程序的所有潜在的相关进程的标识,结合所述列表实时或周期收集所述应用程序的相关进程;还进一步用于结合所述进程列表,实时或周期对未被所述进程列表匹配的进程进行安全性检测;The collection module 1 can be used to preset a process list, wherein the identifiers of all potential related processes of the application program are saved, and the related processes of the application program are collected in real time or periodically in combination with the list; The above process list is used to perform security detection on processes not matched by the process list in real time or periodically;
收集模块1,也可以用于实时或周期监控各进程并根据所述应用程序的主进程及进程家族关系收集所述应用程序的相关进程;具体来说,根据一未知进程的父进程标识/子进程标识找到其上层进程/下层进程,当判定所述上层进程/下层进程与所述主进程具有家族关系时,确定所述进程为所述应用程序的相关进程并收集记录所述进程;或者,根据所述相关进程中一已知进程的子进程标识/父进程标识找到其未记录的下层进程/上层进程,确定所述下层进程/上层进程为所述应用程序的相关进程并收集记录所述下层进程/上层进程。The collection module 1 can also be used to monitor each process in real time or periodically and collect the related processes of the application program according to the main process of the application program and the process family relationship; The process identification finds its upper-level process/lower-level process, and when it is determined that the upper-level process/lower-level process has a family relationship with the main process, determine that the process is a related process of the application program and collect and record the process; or, Find an unrecorded lower-layer process/upper-layer process according to the child process ID/parent process ID of a known process in the related process, determine that the lower-layer process/upper-layer process is a related process of the application program, and collect and record the Lower process/upper process.
上述进程管理装置与前述进程管理方法的特征对应,不足之处可以参考前述进程管理方法。The aforementioned process management device corresponds to the features of the aforementioned process management method, and for the shortcomings, please refer to the aforementioned process management method.
上述说明示出并描述了本发明的若干优选实施例,但如前所述,应当理解本发明并非局限于本文所披露的形式,不应看作是对其他实施例的排除,而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本发明的精神和范围,则都应在本发明所附权利要求的保护范围内。The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the forms disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various Various other combinations, modifications, and environments can be made within the scope of the inventive concept described herein, by the above teachings or by skill or knowledge in the relevant field. However, changes and changes made by those skilled in the art do not depart from the spirit and scope of the present invention, and should all be within the protection scope of the appended claims of the present invention.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110082611.1A CN102163161B (en) | 2011-04-01 | 2011-04-01 | A kind of process management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110082611.1A CN102163161B (en) | 2011-04-01 | 2011-04-01 | A kind of process management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102163161A CN102163161A (en) | 2011-08-24 |
CN102163161B true CN102163161B (en) | 2018-09-25 |
Family
ID=44464398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110082611.1A Active CN102163161B (en) | 2011-04-01 | 2011-04-01 | A kind of process management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102163161B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331965A (en) * | 2011-09-15 | 2012-01-25 | 深圳桑菲消费通信有限公司 | Method for resource management of terminal |
CN103197962B (en) * | 2012-01-04 | 2017-02-08 | 中国移动通信集团公司 | Multi-process state switching method and device |
CN103257887B (en) * | 2012-02-16 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and course control method |
CN102681850B (en) * | 2012-05-07 | 2015-05-20 | 北京奇虎科技有限公司 | Method and device for realizing web browsing based on Webkit kernel |
CN103809955B (en) * | 2012-11-15 | 2018-10-09 | 腾讯科技(深圳)有限公司 | The method and apparatus of end process |
CN103077052B (en) * | 2012-12-28 | 2017-02-01 | 华为终端有限公司 | Method and device for processing unsmooth operation problem of mobile terminal |
CN105303107A (en) * | 2014-06-06 | 2016-02-03 | 中兴通讯股份有限公司 | Abnormal process detection method and apparatus |
CN104104560A (en) * | 2014-08-08 | 2014-10-15 | 广东欧珀移动通信有限公司 | Application traffic monitoring method, device and mobile terminal |
CN105718307B (en) * | 2014-12-01 | 2019-10-25 | 北京神州泰岳软件股份有限公司 | Process management method and management of process device |
CN104503750A (en) * | 2014-12-15 | 2015-04-08 | 北京奇虎科技有限公司 | Process clearing method and process clearing device |
CN104503841A (en) * | 2014-12-15 | 2015-04-08 | 北京奇虎科技有限公司 | Process clearing method and process clearing device |
CN104615922B (en) * | 2015-02-02 | 2018-07-24 | 同济大学 | A kind of identification authentication system and method based on user software behavior pattern |
CN106227586B (en) * | 2016-07-11 | 2019-08-27 | 珠海豹趣科技有限公司 | Judgment method, device and the equipment that management method, the task of process status are completed |
CN106227565B (en) * | 2016-07-27 | 2020-02-28 | 北京金山安全软件有限公司 | Application control method and device and terminal |
CN106227590A (en) * | 2016-07-27 | 2016-12-14 | 西安酷派软件科技有限公司 | The control method of application process, the control device of application process and terminal |
CN106250236A (en) * | 2016-07-27 | 2016-12-21 | 北京金山安全软件有限公司 | Application control method and device and terminal |
CN106656557A (en) * | 2016-10-31 | 2017-05-10 | 网易(杭州)网络有限公司 | Service state processing method and device |
CN106919422B (en) * | 2017-02-21 | 2021-02-26 | 北京小米移动软件有限公司 | System service management method and device |
CN107608678B (en) * | 2017-08-22 | 2021-06-08 | 深圳传音控股股份有限公司 | Method for judging correlation between processes and mobile terminal |
CN108229167B (en) * | 2017-12-29 | 2022-05-31 | 北京安云世纪科技有限公司 | Method and device for controlling multi-process application and mobile terminal |
CN109992397A (en) * | 2017-12-29 | 2019-07-09 | 广东欧珀移动通信有限公司 | Process handling method and device, electronic equipment, computer readable storage medium |
CN110659491B (en) * | 2019-09-23 | 2022-04-29 | 深信服科技股份有限公司 | Computer system recovery method, device, equipment and readable storage medium |
CN110780996B (en) * | 2019-09-27 | 2022-07-08 | 广州视源电子科技股份有限公司 | Process optimization method and device, storage medium and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1266223A (en) * | 1999-03-08 | 2000-09-13 | 英业达股份有限公司 | Method for application process monitoring |
CN1928826A (en) * | 2006-08-02 | 2007-03-14 | 爱普拉斯通信技术(北京)有限公司 | Multiple tasks dispatching system and method |
CN101350052A (en) * | 2007-10-15 | 2009-01-21 | 北京瑞星国际软件有限公司 | Method and apparatus for discovering malignancy of computer program |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021891A (en) * | 2007-01-26 | 2007-08-22 | 华为技术有限公司 | Process management method and device |
CN101464811B (en) * | 2008-12-29 | 2012-07-04 | 艾默生网络能源有限公司 | Multitask monitoring management system |
CN101989214A (en) * | 2009-07-30 | 2011-03-23 | 鸿富锦精密工业(深圳)有限公司 | Process management system |
-
2011
- 2011-04-01 CN CN201110082611.1A patent/CN102163161B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1266223A (en) * | 1999-03-08 | 2000-09-13 | 英业达股份有限公司 | Method for application process monitoring |
CN1928826A (en) * | 2006-08-02 | 2007-03-14 | 爱普拉斯通信技术(北京)有限公司 | Multiple tasks dispatching system and method |
CN101350052A (en) * | 2007-10-15 | 2009-01-21 | 北京瑞星国际软件有限公司 | Method and apparatus for discovering malignancy of computer program |
Also Published As
Publication number | Publication date |
---|---|
CN102163161A (en) | 2011-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102163161B (en) | A kind of process management method and device | |
US8959633B1 (en) | Detecting anomalous behavior patterns in an electronic environment | |
US9141381B2 (en) | Version control environment for virtual machines | |
KR102268355B1 (en) | Cloud deployment infrastructure validation engine | |
US8863276B2 (en) | Automated role adjustment in a computer system | |
US10291471B1 (en) | Methods and apparatus for remediation execution | |
CN102253863B (en) | Method for closing processes | |
US9058263B2 (en) | Automated fault and recovery system | |
US9495234B1 (en) | Detecting anomalous behavior by determining correlations | |
US9098625B2 (en) | Viral trace | |
Dean et al. | Perfcompass: Online performance anomaly fault localization and inference in infrastructure-as-a-service clouds | |
US20080168423A1 (en) | Characterizing software components or soa services of a computerized system by context | |
US8116179B2 (en) | Simultaneous viewing of multiple tool execution results | |
US20130073704A1 (en) | Methods and apparatus for remediating policy test failures, including promoting changes for compliance review | |
US20120266134A1 (en) | Managing Thread Execution In A Non-Stop Debugging Environment | |
TW201419156A (en) | Methods, systems and apparatus to capture error conditions in lightweight virtual machine managers | |
US9442817B2 (en) | Diagnosis of application server performance problems via thread level pattern analysis | |
US10929259B2 (en) | Testing framework for host computing devices | |
US20060106896A1 (en) | System and method for creating list of backup files based upon program properties | |
CN102184118B (en) | System recovery method | |
US10657027B2 (en) | Aggregating data for debugging software | |
US8255876B2 (en) | Execution difference identification tool | |
US20160246658A1 (en) | Acquiring diagnostic data selectively | |
JP6238221B2 (en) | Apparatus, method and program for monitoring execution of software | |
CN112182581A (en) | Application testing method and device, application testing equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing Patentee after: Beijing Qizhi Business Consulting Co.,Ltd. Address before: 100016 East unit, 4th floor, Zhaowei building, 14 Jiuxianqiao Road, Chaoyang District, Beijing Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220210 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing Patentee before: Beijing Qizhi Business Consulting Co.,Ltd. |
|
TR01 | Transfer of patent right |