CN107608678A - The determination methods and mobile terminal of relevance between process - Google Patents

The determination methods and mobile terminal of relevance between process Download PDF

Info

Publication number
CN107608678A
CN107608678A CN201710723511.XA CN201710723511A CN107608678A CN 107608678 A CN107608678 A CN 107608678A CN 201710723511 A CN201710723511 A CN 201710723511A CN 107608678 A CN107608678 A CN 107608678A
Authority
CN
China
Prior art keywords
mark
installation kit
user
installation
identified
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.)
Granted
Application number
CN201710723511.XA
Other languages
Chinese (zh)
Other versions
CN107608678B (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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201710723511.XA priority Critical patent/CN107608678B/en
Publication of CN107608678A publication Critical patent/CN107608678A/en
Application granted granted Critical
Publication of CN107608678B publication Critical patent/CN107608678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to the determination methods and mobile terminal of relevance between a kind of process.The determination methods of relevance, comprise the following steps between process:Establish an installation the package list, including installation kit mark and multiple user's marks corresponding with installation kit mark;The process identification (PID) of the first process, the second process is obtained respectively;The first user mark, the second user of the second process for obtaining the first process respectively according to the process identification (PID) of the first process, the second process identify;The first installation kit mark, the second installation kit mark matched respectively with the first user mark, second user mark is selected from installation the package list;It is identical to judge that the first installation kit mark identifies whether with the second installation kit, if so, then confirming that the first process and the second process are interrelated.The present invention may determine that whether the two processes belong to same installation kit, provides reference for follow-up imperative operation, greatly improves Consumer's Experience.

Description

The determination methods and mobile terminal of relevance between process
Technical field
The present invention relates to the determination methods of relevance between communication technical field, more particularly to a kind of process and movement eventually End.
Background technology
Sustainable development and people's living standards continue to improve with science and technology, mobile phone, notebook computer, desktop The mobile terminal devices such as brain, smart camera are more and more common in daily life to be used.However, in order to realize use The intellectuality of family terminal, it is required on mobile terminal carrying an operating system.At present, conventional operating system has Windows systems System, Android (Android) system, linux system, IOS systems, Symbian system etc..Wherein, android system is due to it It is open, it is allowed to which that the manufacturer of various mobile terminals is added in the exploitation of system, and this year becomes in mobile terminal device Dominant systems.
In the mobile terminal of android system is equipped with, user can install a variety of application programs, such as read journey Sequence, social program, shopping program, video reproduction program, audio playing program, Web browsing application, navigator fix program etc., To meet the needs of people's each side.The application program installed on mobile terminals with people is on the increase, each application program Electricity and the memory source for consuming mobile terminal in the process of running are also more and more.But the battery electric quantity of mobile terminal, CPU and memory source are limited.Therefore, when multiple application programs are run simultaneously, power consumption, the CPU of mobile terminal occupy Rate and memory source consumption are more and more, and the speed of service of mobile terminal can be slower and slower.Now, user can select to exit a certain Individual or multiple application programs solve the problem.But after user exits an application program, the application program can't close completely Close, but some processes of the application program continue to run with the backstage of operating system, or in system startup or other feelings The some processes of automatic start under condition, so that user selects to open rapidly during the application program again.These running backgrounds Process still can make it that the speed of service of mobile terminal is slack-off, and operating system is not smooth, and can produce substantial amounts of garbage files, accounts for With system resource, cause the Consumer's Experience of extreme difference.In this case, user often uses some compulsory measures, such as by force Stop stops (force-stop), disables/enable (enable/disable), to reach the purpose for closing a certain background process.But It is that these compulsory measures are essentially all based on installation kit, i.e., perform above-mentioned compulsory measure to a certain background process, can cause The foreground for belonging to same installation kit with the background process carries out also being performed corresponding operation, eventually results in and the foreground The sudden strain of a muscle of application program corresponding to process or system program is moved back.
Fig. 1 is the flow chart that installation kit is installed on mobile terminals in the prior art.Why above mentioned problem occurs, be Because as shown in figure 1, it is existing be equipped with the installation that an installation kit is carried out on the mobile terminal of android system when, system Can be one user's mark (UID) of each program distribution in installation kit, and newly-generated user's mark is former added to system In some installation the package lists, to update installation the package list.But in this way, user uses compulsory measure to a certain process When, whether belong to same installation kit between another process of system None- identified and the pre- process for forcing to stop, and then can cause The foreground for belonging to same installation kit with the pre- background process for forcing to stop carries out also being performed corresponding operation, ultimately causes The sudden strain of a muscle of application program corresponding with the foreground process or system program is moved back, strong influence Consumer's Experience.
Therefore, how the relevance between process is judged, to identify whether multiple processes belong to same installation kit, It is technical problem urgently to be resolved hurrily at present.
The content of the invention
The present invention provides the determination methods and mobile terminal of relevance between a kind of process, to solve in the prior art not To identify whether multiple processes belong to same installation kit, and then it can be improved to whether associating the problem of judging between process The usage experience of user.
In order to solve the above problems, the invention provides a kind of determination methods of relevance between process, including following step Suddenly:Establish an installation the package list, described installation the package list includes an installation kit and identified and corresponding with installation kit mark Multiple user's marks, the installation kit mark is corresponding with an installation kit, and the installation kit includes multiple programs, multiple journeys Sequence is identified with multiple users and corresponded;Obtain the first process identification (PID) of the first process, and the second process mark of the second process Know;The first user mark, the institute of first process are obtained according to first process identification (PID), second process identification (PID) respectively State the second user mark of the second process;Selected from described installation the package list respectively with first user mark, described the Two users identify the first installation kit mark of matching, the second installation kit mark;Judge first installation kit mark and described the Two installation kits identify whether it is identical, if so, then confirming that first process and second process are interrelated.
Preferably, the specific steps for establishing an installation the package list include:Define installation kit mark, the installation kit Mark is corresponding with an installation kit, and the installation kit includes multiple programs, and multiple described programs and multiple users identify one a pair Should;An one-dimension array is defined, multiple users marks are converted into multiple one-dimension array subscripts one by one, and by the peace Dress bag mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts, to form described installation the package list.
Preferably, multiple user's marks are converted into target under multiple one-dimension arrays one by one to comprise the concrete steps that: Each user's mark is subtracted 10000, user mark is converted into a corresponding one-dimension array subscript.
Preferably, select to identify with first user mark, the second user respectively from described installation the package list The first installation kit mark, the specific steps of the second installation kit mark of matching include:By first user mark, described second User's mark is individually subtracted 10000 to be used as the first subscript, the second subscript;From the one-dimension array under selection and described first The first element identifies as the first installation kit corresponding to mark, and selection is corresponding with second subscript from the one-dimension array Second element identifies as the second installation kit.
Preferably, the installation kit is identified as a positive integer;The one-dimension array is integer array, and including 1024 members Element.
Present invention also offers a kind of mobile terminal, including:Memory module, for storing an installation the package list, the peace Filling the package list includes installation kit mark and multiple user's marks corresponding with installation kit mark, the installation kit mark Knowledge is corresponding with an installation kit, and the installation kit includes multiple programs, and multiple described programs are identified with multiple users and corresponded; First acquisition module, for obtaining the first process identification (PID) of the first process, and the second process identification (PID) of the second process;Second obtains Modulus block, connect the first acquisition module, for respectively according to first process identification (PID), second process identification (PID) obtain described in The first user mark, the second user of second process mark of first process;Matching module, connection described second obtain mould Block, the memory module, for from it is described installation the package list in select respectively with first user mark, the second user The first installation kit mark, the second installation kit mark of mark matching;Control module, matching connection module, for judging described One installation kit mark identified whether with second installation kit it is identical, if so, then confirming that first process is entered with described second Journey is interrelated.
Preferably, the memory module includes first processing units and second processing unit;The first processing units, use In defining installation kit mark, the installation kit mark is corresponding with an installation kit, and the installation kit includes multiple programs, multiple Described program is identified with multiple users and corresponded;The second processing unit connects the first processing units, for defining One one-dimension array, multiple users marks are converted into multiple one-dimension array subscripts one by one, and by the installation kit mark Knowledge is stored in one-dimension array position corresponding to multiple one-dimension array subscripts, to form described installation the package list.
Preferably, each user's mark is subtracted 10000 by the second processing unit, and user mark is turned Change a corresponding one-dimension array subscript into.
Preferably, second acquisition module includes the first analytic unit and the second analytic unit;First analysis is single Member, for first user mark, second user mark to be individually subtracted into 10000 using as under the first subscript, second Mark;Second analytic unit, first analytic unit is connected, under the selection and described first from the one-dimension array The first element identifies as the first installation kit corresponding to mark, and selection is corresponding with second subscript from the one-dimension array Second element identifies as the second installation kit.
Preferably, the installation kit is identified as a positive integer;The one-dimension array is integer array, and including 1024 members Element.
The determination methods and mobile terminal of relevance between process provided by the invention, identified by increasing by an installation kit, And make it that installation kit mark is corresponding with user's mark of multiple programs in installation kit, when needs enter to the relevance of two processes When row judges, identified whether unanimously by the installation kit for contrasting two processes, it is possible to judge whether the two processes belong to phase The same installation kit of mutual correlation, reference is provided for follow-up imperative operation, so as to greatly improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart that installation kit is installed on mobile terminals in the prior art;
Fig. 2 be the specific embodiment of the invention process between relevance determination methods flow chart;
Fig. 3 be the specific embodiment of the invention process between relevance determination methods in install the package list structure show It is intended to;
Fig. 4 is the structural representation of the mobile terminal of the specific embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawings to the determination methods of relevance between process provided by the invention and the specific reality of mobile terminal The mode of applying elaborates.
Present embodiment provides a kind of determination methods of relevance between process, and Fig. 2 is specific implementation of the present invention The determination methods flow chart of relevance between the process of mode.As shown in Fig. 2 closed between the process that present embodiment provides The determination methods of connection property comprise the following steps:
Step S21, establishes an installation the package list, and installation the package list includes an installation kit and identifies and identified with installation kit Corresponding multiple users mark, installation kit mark is corresponding with an installation kit, and installation kit includes multiple programs, multiple programs and more Individual user, which identifies, to be corresponded.When installing an installation kit on mobile terminals, mobile terminal passes through installation kit management service The each program of (Package Manager Service, PMS) into installation kit distributes a user and identifies (User Identification, UID), and user's mark between distinct program is different.Mobile end in present embodiment End includes but is not limited to mobile phone, notebook computer, tablet personal computer, desktop computer, camera etc., and the shifting in present embodiment Dynamic terminal is equipped with android system.Conventionally, as user's mark of each program is different, only according to User identifies, and system can not judge whether the two programs come from same installation kit, thus, some are based on the strong of installation kit Property measure processed, such as force to stop, disabling/enable, it can not judge whether two processes associate during execution, therefore can be right All processes for belonging to same installation kit take identical measure, and then cause the sudden strain of a muscle of program to be moved back.In order to solve this problem, Present embodiment defines an installation kit mark for each installation kit, and establishes an installation the package list.
Fig. 3 be the specific embodiment of the invention process between relevance determination methods in install the package list structure show It is intended to.As shown in figure 3, installation the package list that present embodiment is established includes installation kit mark and user's mark.With tradition Installation the package list compare, installation the package list of present embodiment adds installation kit mark for each installation kit, And installation kit mark is corresponding with user's mark of all programs in installation kit, subsequently to judge whether two processes belong to same One installation kit lays the foundation.
Step S22, obtain the first process identification (PID) of the first process, and the second process identification (PID) of the second process.Process mark Know (Process Identification, PID) to refer to, after program brings into operation, an identity mark that system is distributed to program Know, after program determination operation, system can withdraw the process identification (PID) of program, and when program is run again, system can be redistributed One is identified to program.That is, the process identification (PID) of program is change, only according to process identification (PID), system can not Judge whether the two processes belong to same installation kit.
Step S23, identified respectively according to the first user of the first process identification (PID), the second process identification (PID) the first process of acquisition, The second user mark of second process.Although the process identification (PID) of program is change, system is distributing process mark for program During knowledge, there is a corresponding relation between its process identification (PID) and user's mark, according to the process identification (PID) of program, can just obtain User's mark of the program, user's mark are will not to change with operation, stopping.Wherein, process identification (PID) identifies it with user Between corresponding relation belong to prior art, will not be repeated here.
Step S24, the first peace matched respectively with the first user mark, second user mark is selected from installation the package list Dress bag mark, the second installation kit mark.After the first user mark, second user mark is obtained, arranged from the installation kit In table, it is possible to quick to obtain the first installation kit mark corresponding with the first user mark, second user mark, second respectively and pacify Dress bag mark is simple to operate, convenient.
Step S25, it is identical to judge that the first installation kit mark identifies whether with the second installation kit, if so, then carrying out step S26, that is, confirm that the first process and the second process are interrelated.In this embodiment, the first process and the second process phase Mutual correlation, refer to that the first process belongs to same installation kit with the second process.If the first installation kit identifies and the second installation kit mark Knowledge differs, then confirms that the first process carries out onrelevant with second.Determine between the first process and the second process have it is unrelated After connection, it is possible to take operation to some compulsive measures based on installation kit, so as to avoid program from dodging the appearance moved back, improve Consumer's Experience.
In order to save the memory source of mobile terminal, judging efficiency is improved, it is preferred that establish the specific of an installation the package list Step includes:
A) installation kit mark is defined, installation kit mark is corresponding with an installation kit, and installation kit includes multiple programs, multiple Program is identified with multiple users and corresponded;
B) one-dimension array is defined, multiple users mark is converted into multiple one-dimension array subscripts one by one, and by installation kit Mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts, to form installation the package list.Because user identifies Generally it is made up of an integer, and user's mark is all generally order-assigned, that is, belongs to multiple users of same installation kit Mark arranges according to order from small to large.Present embodiment employs the mode of Hash mapping, i.e., identifies user and make For the subscript of one-dimension array, and the user for belonging to same installation kit identifies, the element of its corresponding one-dimension array with Installation kit identifies assignment, and now, installation the package list can is reduced to an one-dimension array, is needing whether to judge two processes During association, only need to according to corresponding to identifying the user of the two processes in one-dimension array the position of element, the position element value It can determine whether, be greatly saved the memory headroom of mobile terminal.
Because user's mark is usually a positive integer for being more than 10000, for the effect that relevance judges between raising process Rate, it is preferred that multiple users mark is converted into target under multiple one-dimension arrays one by one and comprised the concrete steps that:Each user is identified 10000 are subtracted, user's mark is converted into a corresponding one-dimension array subscript.So, one-dimension array can be reduced Array length, so as to further save the memory headroom of mobile terminal.
For the efficiency that relevance judges between further raising process, it is furthermore preferred that the selection point from installation the package list The first installation kit not matched with the first user mark, second user mark identifies, the specific steps bag of the second installation kit mark Include:First user mark, second user mark are individually subtracted 10000 to be used as the first subscript, the second subscript;From one-dimension array It is middle to select the first element corresponding with the first subscript to be identified as the first installation kit, and selection and the second subscript from one-dimension array Corresponding second element identifies as the second installation kit.In this way, can quickly obtain respectively with the first process, second The position of element in one-dimension array corresponding to first user of process identifies, second user identifies, compared to the issuer of traversal Formula, search efficiency have obtained great lifting.
In order to simplify whole judgment step, judging efficiency is improved, while save memory headroom, it is preferred that installation kit identifies For a positive integer;One-dimension array is integer array, and including 1024 elements.
Present embodiment additionally provides a kind of mobile terminal, and Fig. 4 is the mobile terminal of the specific embodiment of the invention Structural representation.As shown in figure 4, the mobile terminal that present embodiment provides includes:Memory module 41, first obtains mould Block 42, the second acquisition module 43, matching module 44 and control module 45.
Memory module 41, for store one installation the package list, installation the package list include an installation kit identify and with installation Multiple user's marks corresponding to bag mark, installation kit mark is corresponding with an installation kit, and installation kit includes multiple programs, Duo Gecheng Sequence is identified with multiple users and corresponded.When installing an installation kit on mobile terminals, mobile terminal is taken by installation kit management The each program of (Package Manager Service, PMS) into installation kit of being engaged in distributes a user and identifies (User Identification, UID), and user's mark between distinct program is different.Mobile end in present embodiment End includes but is not limited to mobile phone, notebook computer, tablet personal computer, desktop computer, camera etc., and the shifting in present embodiment Dynamic terminal is equipped with android system.Conventionally, as user's mark of each program is different, only according to User identifies, and system can not judge whether the two programs come from same installation kit, thus, some are based on the strong of installation kit Property measure processed, such as force to stop, disabling/enable, it can not judge whether two processes associate during execution, therefore can be right All processes for belonging to same installation kit take identical measure, and then cause the sudden strain of a muscle of program to be moved back.In order to solve this problem, Present embodiment defines an installation kit mark for each installation kit, and establishes an installation the package list.
Fig. 3 be the specific embodiment of the invention process between relevance determination methods in install the package list structure show It is intended to.As shown in figure 3, installation the package list that present embodiment is established includes installation kit mark and user's mark.With tradition Installation the package list compare, installation the package list of present embodiment adds installation kit mark for each installation kit, And installation kit mark is corresponding with user's mark of all programs in installation kit, subsequently to judge whether two processes belong to same One installation kit lays the foundation.
First acquisition module 42, for obtaining the first process identification (PID) of the first process, and the second process of the second process Mark.Process identification (PID) (Process Identification, PID) refers to that after program brings into operation, system is distributed to program One identity, after program determination operation, system can withdraw the process identification (PID) of program, when program is run again, system One can be redistributed to be identified to program.That is, the process identification (PID) of program is change, only according to process mark Know, system can not judge whether the two processes belong to same installation kit.
Second acquisition module 43, the first acquisition module 42 is connected, for respectively according to the first process identification (PID), the second process mark Know the first user mark, the second user of the second process mark for first process that obtains.Although the process identification (PID) of program is change , but system during process identification (PID) is distributed for program, its process identification (PID) has a corresponding pass between being identified with user System, according to the process identification (PID) of program, the user that can obtain the program is identified, user's mark be will not with operation, stop and Change.Wherein, the corresponding relation between process identification (PID) and user's mark belongs to prior art, will not be repeated here.
Matching module 44, connection the second acquisition module 43, memory module 41, for from installation the package list in select respectively with First user mark, the first installation kit mark of second user mark matching, the second installation kit mark.Obtaining the first user After mark, second user mark, from described installation the package list, it is possible to it is quick obtain respectively with the first user mark, the The first installation kit mark, the second installation kit mark, simple to operate, convenient corresponding to two users mark.
Control module 45, matching connection module 44, for judging that the first installation kit mark identifies whether with the second installation kit It is identical, if so, then confirming that the first process and the second process are interrelated.In this embodiment, the first process and second Process is interrelated, refers to that the first process belongs to same installation kit with the second process.If the first installation kit identifies and the second peace Dress bag mark differs, then confirms that the first process carries out onrelevant with second.Determining between the first process and the second process After having an onrelevant, it is possible to operation is taken to some compulsive measures based on installation kit, so as to which avoid program from dodging moving back goes out It is existing, improve Consumer's Experience.
In order to save the memory source of mobile terminal, judging efficiency is improved, it is preferred that memory module 41 includes the first processing Unit 411 and second processing unit 412;First processing units 411, for defining installation kit mark, installation kit mark and one Installation kit is corresponding, and installation kit includes multiple programs, and multiple programs are identified with multiple users and corresponded;Second processing unit 412 connection first processing units 411, for defining an one-dimension array, multiple users mark is converted into multiple dimensions one by one Group subscript, and installation kit mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts, to form installation kit List.Because user's mark is generally made up of an integer, and user's mark is all generally order-assigned, that is, is belonged to same Multiple users mark of installation kit arranges according to order from small to large.Present embodiment employs the side of Hash mapping Formula, i.e., user is identified into the subscript as one-dimension array, and the user for belonging to same installation kit identifies, its corresponding one The element of dimension group identifies assignment with installation kit, and now, installation the package list can is reduced to an one-dimension array, is needing When judging whether two processes associate, only need to according to corresponding to identifying the user of the two processes in one-dimension array element position Put, the element value of the position can determine whether, be greatly saved the memory headroom of mobile terminal.
Because user's mark is usually a positive integer for being more than 10000, for the effect that relevance judges between raising process Rate, it is preferred that each user mark is subtracted 10000 by second processing unit 412, user's mark is converted into corresponding One one-dimension array subscript.
For the efficiency that relevance judges between further raising process, it is furthermore preferred that the second acquisition module 43 includes the One analytic unit 431 and the second analytic unit 432;First analytic unit 431, for by the first user mark, second user mark Knowledge is individually subtracted 10000 to be used as the first subscript, the second subscript;Second analytic unit 432, the first analytic unit 431 is connected, used In selecting corresponding with the first subscript the first element to be identified as the first installation kit from one-dimension array, and selected from one-dimension array Second element corresponding with the second subscript is selected to identify as the second installation kit.In this way, can quickly obtain respectively with The position of element in one-dimension array corresponding to first process, the first user of the second process identify, second user identifies, compared to The inquiry mode of traversal, search efficiency have obtained great lifting.
In order to simplify whole judgment step, judging efficiency is improved, while save memory headroom, it is preferred that installation kit identifies For a positive integer;One-dimension array is integer array, and including 1024 elements.
The determination methods and mobile terminal of relevance between the process that present embodiment provides, pass through the installation of increase by one Bag mark, and make it that installation kit mark is corresponding with user's mark of multiple programs in installation kit, when needs are to two processes When relevance is judged, identified whether unanimously by the installation kit for contrasting two processes, it is possible to judge that the two processes are It is no to belong to the same installation kit that is mutually related, reference is provided for follow-up imperative operation, so as to greatly improve user's body Test.
Embodiment 1
Present embodiments provide a kind of determination methods of relevance between process in mobile phone.The mobile phone of the present embodiment is carrying There is the smart mobile phone of android system.In the mobile phone that the present embodiment provides between process the determination methods of relevance include it is as follows Step:
Step S31, installation kit mark is defined, installation kit mark is corresponding with an installation kit, and installation kit includes multiple journeys Sequence, multiple programs are identified with multiple users and corresponded;Installation kit is identified as a positive integer.
Step S32, an one-dimension array is defined, multiple users mark is converted into multiple one-dimension array subscripts one by one, and will Installation kit mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts;One-dimension array is integer array, and its Length is 1024.Each user mark is subtracted 10000, user's mark is converted under a corresponding one-dimension array Mark.
Step S33, obtain the first process identification (PID) of the first process, and the second process identification (PID) of the second process.
Step S34, identified respectively according to the first user of the first process identification (PID), the second process identification (PID) the first process of acquisition, The second user mark of second process.
Step S35, the first user mark, second user mark are individually subtracted 10000 using as under the first subscript, second Mark;The first element corresponding with the first subscript is selected to be identified as the first installation kit from one-dimension array, and from one-dimension array Selection second element corresponding with the second subscript identifies as the second installation kit.
Step S36, it is identical to judge that the first installation kit mark identifies whether with the second installation kit, if so, then confirming that first enters Journey and the second process are interrelated.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art Member, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (10)

1. the determination methods of relevance between a kind of process, it is characterised in that comprise the following steps:
Establish an installation the package list, described installation the package list includes an installation kit and identified and corresponding with installation kit mark Multiple users mark, installation kit mark is corresponding with an installation kit, and the installation kit includes multiple programs, it is multiple described in Program is identified with multiple users and corresponded;
Obtain the first process identification (PID) of the first process, and the second process identification (PID) of the second process;
Identified respectively according to the first user of first process identification (PID), second process identification (PID) acquisition, first process, The second user mark of second process;
The first peace matched respectively with first user mark, second user mark is selected from described installation the package list Dress bag mark, the second installation kit mark;
It is identical to judge that the first installation kit mark identifies whether with second installation kit, if so, then confirming that described first enters Journey and second process are interrelated.
2. the determination methods of relevance between process according to claim 1, it is characterised in that described to establish an installation kit The specific steps of list include:
Installation kit mark is defined, the installation kit mark is corresponding with an installation kit, and the installation kit includes multiple programs, more Individual described program is identified with multiple users and corresponded;
An one-dimension array is defined, multiple user's marks are converted into multiple one-dimension array subscripts one by one, and by described in Installation kit mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts, is arranged with forming the installation kit Table.
3. the determination methods of relevance between process according to claim 2, it is characterised in that mark multiple users Knowledge is converted into target under multiple one-dimension arrays and comprised the concrete steps that one by one:
Each user's mark is subtracted 10000, user mark is converted under a corresponding one-dimension array Mark.
4. the determination methods of relevance between process according to claim 3, it is characterised in that from described installation the package list The first installation kit that middle selection matches with first user mark, second user mark respectively identifies, the second installation kit The specific steps of mark include:
First user mark, second user mark are individually subtracted 10000 to be used as the first subscript, the second subscript;
Corresponding with first subscript the first element is selected to be identified as the first installation kit from the one-dimension array, and from institute Stating in one-dimension array selects second element corresponding with second subscript to be identified as the second installation kit.
5. the determination methods of relevance between process according to claim 2, it is characterised in that the installation kit is identified as One positive integer;The one-dimension array is integer array, and including 1024 elements.
A kind of 6. mobile terminal, it is characterised in that including:
Memory module, for store one installation the package list, it is described installation the package list include an installation kit identify and with the peace Multiple user's marks corresponding to dress bag mark, the installation kit mark is corresponding with an installation kit, and the installation kit includes multiple Program, multiple described programs are identified with multiple users and corresponded;
First acquisition module, for obtaining the first process identification (PID) of the first process, and the second process identification (PID) of the second process;
Second acquisition module, the first acquisition module is connected, for respectively according to first process identification (PID), the second process mark Know the first user mark for obtaining first process, the second user of second process mark;
Matching module, second acquisition module, the memory module are connected, for selecting difference from described installation the package list The first installation kit mark, the second installation kit mark matched with first user mark, second user mark;
Control module, matching connection module, for judging that the first installation kit mark identifies whether with second installation kit It is identical, if so, then confirming that first process and second process are interrelated.
7. mobile terminal according to claim 6, it is characterised in that the memory module includes first processing units and the Two processing units;The first processing units, for defining installation kit mark, the installation kit mark and an installation kit pair Should, the installation kit includes multiple programs, and multiple described programs are identified with multiple users and corresponded;The second processing list Member connects the first processing units, and for defining an one-dimension array, multiple user's marks are converted into multiple institutes one by one One-dimension array subscript is stated, and installation kit mark is stored in one-dimension array position corresponding to multiple one-dimension array subscripts Put, to form described installation the package list.
8. mobile terminal according to claim 7, it is characterised in that the second processing unit marks each user Knowledge subtracts 10000, and user mark is converted into a corresponding one-dimension array subscript.
9. mobile terminal according to claim 8, it is characterised in that second acquisition module includes the first analytic unit With the second analytic unit;First analytic unit, for first user mark, second user mark to be subtracted respectively 10000 are gone to be used as the first subscript, the second subscript;Second analytic unit, first analytic unit is connected, for from institute Stating in one-dimension array selects corresponding with first subscript the first element to be identified as the first installation kit, and from a dimension Second element corresponding with second subscript is selected to be identified as the second installation kit in group.
10. mobile terminal according to claim 7, it is characterised in that the installation kit is identified as a positive integer;Described one Dimension group is integer array, and including 1024 elements.
CN201710723511.XA 2017-08-22 2017-08-22 Method for judging correlation between processes and mobile terminal Active CN107608678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710723511.XA CN107608678B (en) 2017-08-22 2017-08-22 Method for judging correlation between processes and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710723511.XA CN107608678B (en) 2017-08-22 2017-08-22 Method for judging correlation between processes and mobile terminal

Publications (2)

Publication Number Publication Date
CN107608678A true CN107608678A (en) 2018-01-19
CN107608678B CN107608678B (en) 2021-06-08

Family

ID=61065419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710723511.XA Active CN107608678B (en) 2017-08-22 2017-08-22 Method for judging correlation between processes and mobile terminal

Country Status (1)

Country Link
CN (1) CN107608678B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633087A (en) * 2019-08-13 2019-12-31 上海联影医疗科技有限公司 Client installation method, device and storage medium
CN116028209A (en) * 2022-05-16 2023-04-28 荣耀终端有限公司 Resource scheduling method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163161A (en) * 2011-04-01 2011-08-24 奇智软件(北京)有限公司 Process management method and device thereof
CN103685138A (en) * 2012-08-30 2014-03-26 卓望数码技术(深圳)有限公司 Method and system for authenticating application software of Android platform on mobile internet
CN103888252A (en) * 2012-12-19 2014-06-25 深圳市华营数字商业有限公司 UID, PID, and APPID-based control application access permission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163161A (en) * 2011-04-01 2011-08-24 奇智软件(北京)有限公司 Process management method and device thereof
CN103685138A (en) * 2012-08-30 2014-03-26 卓望数码技术(深圳)有限公司 Method and system for authenticating application software of Android platform on mobile internet
CN103888252A (en) * 2012-12-19 2014-06-25 深圳市华营数字商业有限公司 UID, PID, and APPID-based control application access permission method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633087A (en) * 2019-08-13 2019-12-31 上海联影医疗科技有限公司 Client installation method, device and storage medium
CN110633087B (en) * 2019-08-13 2023-07-25 上海联影医疗科技股份有限公司 Client installation method, device and storage medium
CN116028209A (en) * 2022-05-16 2023-04-28 荣耀终端有限公司 Resource scheduling method, electronic equipment and storage medium
CN116028209B (en) * 2022-05-16 2023-10-20 荣耀终端有限公司 Resource scheduling method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107608678B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN103430151B (en) A kind of resource allocation method and device
CN104021019B (en) A kind of apply the control method of self-starting, terminal and server
CN105283849A (en) Parallel tracing for performance and detail
CN105103147A (en) Tracing with a workload distributor
CN103581187B (en) Method and system for controlling access rights
CN105283852A (en) Obfuscating trace data
CN104834880B (en) A kind of card test method and system based on NFC mobile terminal
TW200719660A (en) Apparatus and method for controlling access to an external memory
JP2006309458A5 (en)
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN106646315B (en) A kind of Auto-Test System and its test method of digital measuring instruments
CN107608678A (en) The determination methods and mobile terminal of relevance between process
CN103297451A (en) Terminal and webpage download method
CN106292990A (en) The method of adjustment of CPU operational factor and terminal
CN105279426B (en) Configure the electronic equipment and its correlation technique of application program inter-related task
CN107480086A (en) Support circuit, terminal and its control method of OTG functions
CN109101397A (en) High-Performance Computing Cluster monitoring method, unit and storage medium
CN103024779A (en) Method and device for improving internet speed of double cards
CN107807830A (en) Medical software update method and server based on cluster
CN109753348A (en) The management-control method and terminal of background application
CN103269521B (en) Intelligent terminal data fast sharing method
CN105700664B (en) A kind of method and mobile terminal of electricity saving of mobile terminal
CN106020910A (en) Application shut-down method and device
Schirmer et al. Improving energy disaggregation performance using appliance-driven sampling rates
CN105117254B (en) Wireless communication module and operation method and device thereof

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
CB02 Change of applicant information

Address after: 518057 Shennan Avenue, Yuehai Street, Shenzhen City, Guangdong Province, 9789 Desai Science and Technology Building, 17th Floor (15th Floor of Nature Floor) 1702-1703

Applicant after: Shenzhen acoustic Cmi Holdings Ltd

Address before: 518057 Shennan Avenue, Yuehai Street, Shenzhen City, Guangdong Province, 9789 Desai Science and Technology Building, 17th Floor (15th Floor of Nature Floor) 1702-1703

Applicant before: Shenzhen sound Holdings Limited

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant