CN109032777A - Process method for restarting, calculates equipment and computer storage medium at device - Google Patents

Process method for restarting, calculates equipment and computer storage medium at device Download PDF

Info

Publication number
CN109032777A
CN109032777A CN201810712658.3A CN201810712658A CN109032777A CN 109032777 A CN109032777 A CN 109032777A CN 201810712658 A CN201810712658 A CN 201810712658A CN 109032777 A CN109032777 A CN 109032777A
Authority
CN
China
Prior art keywords
file
signal specific
current task
handled
thread
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
CN201810712658.3A
Other languages
Chinese (zh)
Other versions
CN109032777B (en
Inventor
张平
马智昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810712658.3A priority Critical patent/CN109032777B/en
Publication of CN109032777A publication Critical patent/CN109032777A/en
Application granted granted Critical
Publication of CN109032777B publication Critical patent/CN109032777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

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

Abstract

The invention discloses a kind of process method for restarting, device, calculate equipment and computer storage medium, which comprises when the file that the process that detects relies on updates, generate signal specific;Whenever the process is in idle condition or the process has handled current task, when active inquiry is to the signal specific, the process is out of service;Alternatively, whenever the process passively receives the signal specific, and in the process is in idle condition or after the process handled current task, the process is out of service;Restart the process, and loads the updated file.This programme obtains signal specific by active inquiry or the passive two ways that receives, and in the case where process is in idle condition or process has handled current task, control process is out of service, to avoid corrupted data or loss;Then restart the updated file of load, and then be automatically performed the load of file.

Description

Process method for restarting, calculates equipment and computer storage medium at device
Technical field
The present invention relates to field of computer technology, and in particular to a kind of process method for restarting, calculates equipment and calculating at device Machine storage medium.
Background technique
During computer operation, it will usually have in the process run always from the background, the operation of these processes needs Dependent on other files, for example, depending on some algorithm files.And when these processes are in operating status, if it is relied on Other files updated, then need to reload updated file, so that process relies on updated text Part is run.
In the prior art, after other files of dependence update, process is controlled by manual type and is restarted simultaneously Updated other files are loaded, the mode that this load updates needs human input;And directly process is restarted Load, the task that meeting interrupt process is being handled, be easy to cause corrupted data or loss.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind It states the process method for restarting of problem, device, calculate equipment and computer storage medium.
According to an aspect of the invention, there is provided a kind of process method for restarting comprising:
When the file that the process that detects relies on updates, signal specific is generated;
Whenever the process is in idle condition or the process has handled current task, active inquiry is to described specific When signal, the process is out of service;Alternatively, whenever the process passively receives the signal specific, and in the process It is in idle condition or after the process handled current task, the process is out of service;
Restart the process, and loads the updated file.
According to another aspect of the present invention, a kind of process rebooting device is provided comprising:
Generation module when the file suitable for relying on when the process that detects updates, generates signal specific;
Stopping modular, suitable for being in idle condition or the process has handled current task whenever the process, actively When inquiring the signal specific, the process is out of service;Alternatively, whenever the process passively receives the specific letter Number, and in the process is in idle condition or after the process handled current task, the process is out of service;
Restart module, suitable for restarting the process, and loads the updated file.
According to another aspect of the invention, provide a kind of calculating equipment, comprising: processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor The corresponding operation of process method for restarting.
In accordance with a further aspect of the present invention, provide a kind of computer storage medium, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute such as the corresponding operation of above-mentioned process method for restarting.
Process method for restarting according to the present invention, calculates equipment and computer storage medium at device, when the process that detects according to When bad file updates, signal specific is generated;Whenever the process is in idle condition or the process has handled and worked as Preceding task, when active inquiry is to the signal specific, the process is out of service;Alternatively, whenever the process passively receives The signal specific, and in the process is in idle condition or after the process handled current task, the process It is out of service;Restart the process, and loads the updated file.The present invention program by active inquiry or passively connects It receives two ways and obtains signal specific, and in the case where process is in idle condition or process has handled current task, control Process processed is out of service, to avoid the currently processed task that influences the course, and avoids corrupted data or loss;Then restart and add Updated file is carried, and then is automatically performed the load of file, is not necessarily to human input.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of process method for restarting according to an embodiment of the invention;
Fig. 2 shows the flow charts of process method for restarting in accordance with another embodiment of the present invention;
Fig. 3 shows the flow chart of the process method for restarting of another embodiment according to the present invention;
Fig. 4 shows the functional block diagram of process rebooting device according to an embodiment of the invention;
Fig. 5 shows a kind of structural schematic diagram for calculating equipment according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow chart of process method for restarting according to an embodiment of the invention.As shown in Figure 1, this method The following steps are included:
Step S110: when the file that the process that detects relies on updates, signal specific is generated.
Specifically, by detection in real time or quasi real time, whether the file that can detecte out process dependence updates, and When detecting that file updates, signal specific is generated.
The detection mode whether present invention does not update detection file is specifically limited, when it is implemented, this field Technical staff can detect according to can arbitrarily determine the condition that file updates.Optionally, according to file size, text The characteristic value of part content, the timestamp of file, and/or whether occurred according to file modification record come the file that detection procedure relies on It updates.
Step S120: after process is in idle condition or process has handled current task, control process stops fortune Row.
After generating signal specific, according to the signal specific, it is out of service to control corresponding process first, then carries out weight Open load.Wherein, in the present invention, to avoid blindness stopping process from leading to the corrupted data or loss of handling for task, After process is in idle condition or process has handled current task, control process is out of service.
Specifically, the mode that process obtains signal specific be divided into active inquiry and it is passive receive two kinds, control accordingly into Journey process out of service is also different: mode one, whenever process is in idle condition or process handle current task, active When inquiring signal specific, process is out of service.Mode two whenever process passively receives signal specific, and is in process In idle state or after process handled current task, process is out of service.By above two mode, may be implemented In the case that process is currently without handling for task, control process is out of service.
Step S130: restarting process, and loads updated file.
It is generated according to process method for restarting provided in this embodiment when the file that the process that detects relies on updates Signal specific;Whenever process is in idle condition or process has handled current task, when active inquiry is to signal specific, process It is out of service;Alternatively, whenever process passively receives signal specific, and in process is in idle condition or process has been handled After current task, process is out of service;Restart process, and loads updated file.This embodiment scheme passes through active inquiry Or the passive two ways that receives obtains signal specific, and is in idle condition in process or process has handled the feelings of current task Under condition, control process is out of service, to avoid corrupted data or loss;Then restart the updated file of load, and then automatic The load of file is completed, human input is not necessarily to.
Fig. 2 shows the flow charts of process method for restarting in accordance with another embodiment of the present invention.In the present embodiment, lead to The mode for crossing active inquiry obtains signal specific.As shown in Fig. 2, method includes the following steps:
Step S210: when the file that the process that detects relies on updates, signal specific is generated;Store the specific letter Number, for relying at least one process inquiry of the file updated.
When file updates, the timestamp of this document is then updated to time when file updates.Based on this, work as detection When the corresponding timestamp of file relied on to process changes, the file for determining that process relies on updates.Specifically, it detects The corresponding timestamp of file that process relies on, if the timestamp of the file detected twice recently the corresponding time is not identical, Show to update file, generates signal specific.
After generating signal specific, signal specific is stored in database or specific file.Further, for convenient for into Journey directly determines the signal specific that the file relied on the presence or absence of this process updates by active inquiry, of the invention one It is different for different files, or for the process for relying on the file updated in a little specific embodiments, by the spy of generation Determine signal to be indicated with different marks, and during active inquiry, process can be according to the mark of signal specific not Together, the signal specific that the file relied on the presence or absence of this process updates is directly determined, alternatively, generation can be directly determined more New specific file.For example, 1 dependent file a of process, 2 dependent file b of process are generated special when file a updates Determine signal 1, when file b updates, generates signal specific 2.If inquiring signal specific 1 by way of active inquiry, Then process 1 can directly determine the signal specific that the file relied on there are this process updates, and then determination is not present process 2 The signal specific that the file that this process relies on updates.
In other specific embodiments of the invention, when being stored to signal specific, according to process and process according to The signal specific is stored in the specific position of corresponding process context by the relation list of bad file, and in active inquiry In the process, process can be inquired into corresponding specific position, to directly determine the file that whether there is this process and rely on The signal specific updated.
Step S220: whenever process is in idle condition or process has handled current task, active inquiry to specific letter Number when, process is out of service.
In the present embodiment, process obtains signal specific by way of active inquiry, this acquisition modes can by into The opportunity of process control active inquiry, by actively being looked into when being in idle condition process or process has handled current task Ask signal specific, can reach to the greatest extent do not influence the course handle current task and safeguard data integrality mesh 's.
Wherein, when, there are when multiple threads, process is in idle condition each thread in specially process all in process It is in idle condition, there is no handling for task in each thread at this time;When, there are when multiple threads, process is handled in process Complete current task is specially that each thread in process has handled its corresponding thread current task, correspondingly, the process of determination Current task whether has been handled, that is, has determined whether each thread has handled its corresponding thread current task.Of the invention In some specific embodiments, the method whether process has handled current task is determined are as follows: when any one thread process in process Its complete corresponding thread current task, it is current which judges whether other threads in process have all handled its corresponding thread Task, if so, the process of determination has handled current task;If it is not, then waiting until thread has all handled its corresponding thread and worked as Preceding task.Here there is a premise, go to check signal in the complete current task of a thread process, if there are this lines for signal Journey just no longer receives new task, allows oneself processing to handle the state of task at one, other threads is waited to carry out state judgement. It is this in its complete corresponding thread current task of any thread process, triggering judge other threads whether handled its correspond to Thread current task method, avoid high-frequency while judging all threads, reduce operand;And In its complete corresponding thread current task of any thread process, triggering judgement can be determined accurately at each all threads The opportunity of its corresponding thread current task has been managed, and then signal specific can be inquired in time.But the present invention is not with this It is limited, in the specific implementation, those skilled in the art can determine otherwise process according to hardware condition and actual demand Whether current task has been handled, for example, determining whether process has handled current task with prefixed time interval.
Specifically, when process is in idle condition or process has handled current task, process to database or specific text The signal specific that the file that active inquiry is relied on the presence or absence of this process in part updates, and if it exists, then control process stopping Operation.If it does not exist, then when process is in idle condition next time or process has handled current task, execution is actively looked into again Inquire about subsequent step.
Step S230: restarting process, and loads updated file.
Specifically, whether in operating status with prefixed time interval detection procedure by activation process;If it is not, then restart into Journey.
It is generated according to process method for restarting provided in this embodiment when the file that the process that detects relies on updates Signal specific is stored in database or specific file by signal specific, in order to the process active inquiry signal specific;Whenever Process is in idle condition or process has handled current task, and when active inquiry is to signal specific, process is out of service;By swashing Whether process living is in operating status with prefixed time interval detection procedure;If it is not, then restarting process.Using the present embodiment provides Process method for restarting, the signal specific of generation is obtained by way of active inquiry, can be by Process flowchart active inquiry Opportunity can be with by the active inquiry signal specific when being in idle condition process or process has handled current task Achieve the purpose that not influence the course to the greatest extent and handles the integrality of current task and maintenance data;Then restart load more File after new, and then it is automatically performed the load of file, it is not necessarily to human input.
Fig. 3 shows the flow chart of the process method for restarting of another embodiment according to the present invention.In the present embodiment, lead to It crosses passive received mode and obtains signal specific.As shown in Fig. 2, method includes the following steps:
Step S310: the relation list for the file that process and process rely on is established.
Relation list by establishing the file that process and process rely on can be in order to determination when there are multiple processes Rely at least one process of the corresponding file updated of signal specific.
Step S320: when the file that the process that detects relies on updates, signal specific is generated.
When file updates, the timestamp of this document is then updated to time when file updates.Based on this, work as detection When the corresponding timestamp of file relied on to process changes, the file for determining that process relies on updates.Specifically, it detects The corresponding timestamp of file that process relies on, if the timestamp of the file detected twice recently the corresponding time is not identical, Show to update file, generates signal specific.
Step S330: inquiry relation list obtains at least one process for relying on the file updated;To at least one Process sends signal specific.
After generating signal specific, the corresponding file updated of the signal specific is inquired in relation list, is passed through The corresponding relationship of process and the file updated in relation list, obtain in relation list it is corresponding at least one into Then journey sends signal specific at least one process, and then fast and accurately determination is restarted and loads update The process of file afterwards.
Step S340: whenever process passively receives signal specific, and in process is in idle condition or at process After having managed current task, process is out of service.
In the present embodiment, process by it is passive it is received in a manner of obtain signal specific, this acquisition modes can make process Signal specific is obtained in time, and then is conducive to improve the timeliness of load;And process directly passively receives the dependence of this process The signal specific that file updates, and determined by other treatment progress rely on update file at least one into Journey, and then reduce the process flow of this process, and further decrease the influence of the efficiency and progress to this process processing task.
Specifically, when process passively receives signal specific, then judge whether process is in idle condition or whether is process Current task is handled, if it is determined that result is that process is not in idle state or when the untreated complete current task of process, then Continue to judge during process processing task, until judging that process is in idle condition or process has handled current task Afterwards, then control that process is out of service, so reach do not influence the course handle current task and safeguard data integrality mesh 's.
Wherein, when, there are when multiple threads, process is in idle condition each thread in specially process all in process It is in idle condition, there is no handling for task in each thread at this time;Here there is a premise, in a thread process It goes to check signal when complete current task, new task is no longer received if signal is there are this thread, allow oneself processing at one The state for having managed task waits other threads to carry out state judgement.When, there are when multiple threads, process has been handled currently in process Task is specially that each thread in process has handled its corresponding thread current task, correspondingly, whether the process of determination is located Current task has been managed, that is, has determined whether each thread has handled its corresponding thread current task.In some tools of the invention In body embodiment, the method whether process has handled current task is determined are as follows: when any one thread process in process is complete, its is right The thread current task answered, the thread judge whether other threads in process have all handled its corresponding thread current task, If so, the process of determination has handled current task;If it is not, then waiting until thread has all handled its corresponding thread as predecessor Business.It is this in its complete corresponding thread current task of any thread process, triggering judge whether other threads have handled it The method of corresponding thread current task avoids with high-frequency while judging all threads, reduces operand;With And in its complete corresponding thread current task of any thread process, triggering judgement can accurately determine each all threads The opportunity of its corresponding thread current task has been handled, and then signal specific can be inquired in time.But the present invention not with This is limited, in the specific implementation, those skilled in the art can according to hardware condition and actual demand, determine otherwise into Whether journey has handled current task, for example, determining whether process has handled current task with prefixed time interval.
Step S350: restarting process, and loads updated file.
Specifically, whether in operating status with prefixed time interval detection procedure by activation process;If it is not, then restart into Journey.
According to process method for restarting provided in this embodiment, the relation list for the file that process and process rely on is established, with Convenient for determining at least one process for relying on the corresponding file updated of signal specific;When the file that the process that detects relies on When updating, signal specific is generated;Relation list is inquired, at least one process for relying on the file updated is obtained;To At least one process sends signal specific;Whenever process passively receives signal specific, and in process is in idle condition or After person's process has handled current task, process is out of service;Restart process, and loads updated file.Utilize the present embodiment The process method for restarting of offer, by establishing the relation list for the file that process and process rely on, with when there are multiple processes, By inquiring the relation list, at least one process for relying on the file updated is determined in time and accurately;Process is with quilt The signal specific that received mode obtains generation is moved, process can be made to obtain signal specific in time, and then is conducive to improve load Timeliness;And after process is in idle condition or process has handled current task, process is out of service, can be most It the achieving the purpose that not influence the course of big degree handles current task and safeguards the integrality of data;Then restart load to update File afterwards, and then it is automatically performed the load of file, it is not necessarily to human input.
Fig. 4 shows the functional block diagram of process rebooting device according to an embodiment of the invention.As shown in figure 4, the dress To set include: generation module 410, stopping modular 420, restarts module 430, optionally, the device further include: building module 440 is looked into Ask module 450, sending module 460 and memory module 470.
Generation module 410 when the file suitable for relying on when the process that detects updates, generates signal specific;
Stopping modular 420, it is main suitable for being in idle condition or the process has handled current task whenever the process Dynamic when inquiring the signal specific, the process is out of service;Alternatively, whenever the process passively receives the specific letter Number, and in the process is in idle condition or after the process handled current task, the process is out of service;
Restart module 430, suitable for restarting the process, and loads the updated file.
In a kind of optional embodiment, generation module 410 is further adapted for: when the file pair that the process that detects relies on When the timestamp answered changes, the file for determining that process relies on updates.
Stopping modular 420 further comprises: when its complete corresponding thread of any one thread process in the process is current Task, the thread judge whether other threads in the process have all handled its corresponding thread current task, if so, really The fixed process has handled current task;If it is not, then waiting until the thread has all handled its corresponding thread current task.
Wherein, the process is in idle condition specifically: each thread in the process is all in idle state.
Module 440 is constructed, the relation list for the file that process and process rely on is adapted to set up.
Enquiry module 450 is suitable for inquiring the relation list, obtain relying on the file updated at least one into Journey;
Sending module 460 is suitable for sending the signal specific at least one described process.
Memory module 470 is suitable for storing the signal specific, for relying at least one process of the file updated Inquiry.
Memory module 470 is further adapted for: according to the relation list for the file that process and process rely on, by the specific letter Number it is stored in the specific position of corresponding process context.
Whether restart module 430 to be further adapted for: it is in operating status to detect the process with prefixed time interval;If It is no, then restart the process.
It can refer to the description of corresponding steps in embodiment of the method about the specific structure and working principle of above-mentioned modules, Details are not described herein again.
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with The process method for restarting in above-mentioned any means embodiment can be performed in an at least executable instruction, the computer executable instructions.
Fig. 5 shows a kind of structural schematic diagram for calculating equipment according to an embodiment of the present invention, the specific embodiment of the invention The specific implementation for calculating equipment is not limited.
As shown in figure 5, the calculating equipment may include: processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 502 can specifically execute the correlation in above-mentioned process method for restarting embodiment for executing program 510 Step.
Specifically, program 510 may include program code, which includes computer operation instruction.
Processor 502 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that equipment includes are calculated, can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for storing program 510.Memory 506 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 executes following operation:
When the file that the process that detects relies on updates, signal specific is generated;
Whenever the process is in idle condition or the process has handled current task, active inquiry is to described specific When signal, the process is out of service;Alternatively, whenever the process passively receives the signal specific, and in the process It is in idle condition or after the process handled current task, the process is out of service;
Restart the process, and loads the updated file.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make:
When the corresponding timestamp of file that the process that detects relies on changes, determine that the file that process relies on occurs more Newly.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make:
When its complete corresponding thread current task of any one thread process in the process, which judges the process In other threads whether all handled its corresponding thread current task, if so, determining that the process handle when former Business;If it is not, then waiting until the thread has all handled its corresponding thread current task.
In a kind of optional mode, the process is in idle condition specifically: each thread in the process is all It is in idle condition.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make: establishing the relation list for the file that process and process rely on.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make:
The relation list is inquired, at least one process for relying on the file updated is obtained;
The signal specific is sent at least one described process.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make:
The signal specific is stored, for relying at least one process inquiry of the file updated.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Make:
According to the relation list for the file that process and process rely on, the signal specific is stored in corresponding process context Specific position.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour Whether make: it is in operating status to detect the process with prefixed time interval;If it is not, then restarting the process.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize some in process rebooting device according to an embodiment of the present invention or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Point or whole device or device programs (for example, computer program and computer program product).Such this hair of realization Bright program can store on a computer-readable medium, or may be in the form of one or more signals.It is such Signal can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses: a kind of process method for restarting of A1. comprising:
When the file that the process that detects relies on updates, signal specific is generated;
Whenever the process is in idle condition or the process has handled current task, active inquiry is to described specific When signal, the process is out of service;Alternatively, whenever the process passively receives the signal specific, and in the process It is in idle condition or after the process handled current task, the process is out of service;
Restart the process, and loads the updated file.
A2. method according to a1, wherein when the corresponding timestamp of file that the process that detects relies on changes When, the file for determining that process relies on updates.
A3. method according to a1 or a2, wherein the process has handled current task and further comprised:
When its complete corresponding thread current task of any one thread process in the process, which judges the process In other threads whether all handled its corresponding thread current task, if so, determining that the process handle when former Business;If it is not, then waiting until the thread has all handled its corresponding thread current task.
A4. according to the described in any item methods of A1-A3, wherein the process is in idle condition specifically: the process In each thread all in idle state.
A5. according to the described in any item methods of A1-A4, wherein the method also includes: establish what process was relied on process The relation list of file.
A6. method according to a5, wherein when the file relied on when the process that detects updates, generate After signal specific, the method also includes:
The relation list is inquired, at least one process for relying on the file updated is obtained;
The signal specific is sent at least one described process.
A7. method according to a5, wherein when the file relied on when the process that detects updates, generate After signal specific, the method also includes:
The signal specific is stored, for relying at least one process inquiry of the file updated.
A8. the method according to A7, wherein storing the signal specific further comprises:
According to the relation list for the file that process and process rely on, the signal specific is stored in corresponding process context Specific position.
A9. according to the described in any item methods of A1-A8, wherein described to restart the process specifically: between preset time Every detecting, whether the process is in operating status;If it is not, then restarting the process.
The invention also discloses: a kind of process rebooting device of B10. comprising:
Generation module when the file suitable for relying on when the process that detects updates, generates signal specific;
Stopping modular, suitable for being in idle condition or the process has handled current task whenever the process, actively When inquiring the signal specific, the process is out of service;Alternatively, whenever the process passively receives the specific letter Number, and in the process is in idle condition or after the process handled current task, the process is out of service;
Restart module, suitable for restarting the process, and loads the updated file.
B11. device according to b10, wherein generation module is further adapted for: when the file that the process that detects relies on When corresponding timestamp changes, the file for determining that process relies on updates.
B12. device according to b10 or b11, wherein the stopping modular further comprises:
When its complete corresponding thread current task of any one thread process in the process, which judges the process In other threads whether all handled its corresponding thread current task, if so, determining that the process handle when former Business;If it is not, then waiting until the thread has all handled its corresponding thread current task.
B13. according to the described in any item devices of B10-B12, wherein the process is in idle condition specifically: described Each thread in process is all in idle state.
B14. according to the described in any item devices of B10-B13, wherein described device further include: building module is adapted to set up The relation list for the file that process and process rely on.
B15. device according to b14, wherein described device further include:
Enquiry module is suitable for inquiring the relation list, obtains at least one process for relying on the file updated;
Sending module is suitable for sending the signal specific at least one described process.
B16. device according to b14, wherein described device further include:
Memory module is suitable for storing the signal specific, looks into for relying at least one process of the file updated It askes.
B17. the device according to B16, wherein memory module is further adapted for:
According to the relation list for the file that process and process rely on, the signal specific is stored in corresponding process context Specific position.
B18. according to the described in any item devices of B10-B17, wherein described to restart module and be further adapted for: with it is default when Between whether in operating status at interval if detecting the process;If it is not, then restarting the process.
The invention also discloses: a kind of calculating equipment of C19., comprising: processor, memory, communication interface and communication are total Line, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute A1- for storing an at least executable instruction, the executable instruction The corresponding operation of process method for restarting described in any one of A9.
The invention also discloses a kind of computer storage medium of D20., being stored at least one in the storage medium can be held Row instruction, the executable instruction make processor execute the corresponding operation of process method for restarting as described in any one of A1-A9.

Claims (10)

1. a kind of process method for restarting comprising:
When the file that the process that detects relies on updates, signal specific is generated;
Whenever the process is in idle condition or the process has handled current task, active inquiry to the signal specific When, the process is out of service;Alternatively, being in whenever the process passively receives the signal specific, and in the process In idle state or after the process handled current task, the process is out of service;
Restart the process, and loads the updated file.
2. according to the method described in claim 1, wherein, when the corresponding timestamp of file that the process that detects relies on changes When, the file for determining that process relies on updates.
3. method according to claim 1 or 2, wherein the process has handled current task and further comprised:
When its complete corresponding thread current task of any one thread process in the process, which judges in the process Whether other threads have all handled its corresponding thread current task, if so, determining that the process has handled current task;If It is no, then it waits until the thread has all handled its corresponding thread current task.
4. method according to claim 1-3, wherein the process is in idle condition specifically: it is described into Each thread in journey is all in idle state.
5. method according to claim 1-4, wherein the method also includes: it establishes process and process relies on File relation list.
6. according to the method described in claim 5, wherein, when the file relied on when the process that detects updates, giving birth to After signal specific, the method also includes:
The relation list is inquired, at least one process for relying on the file updated is obtained;
The signal specific is sent at least one described process.
7. according to the method described in claim 5, wherein, when the file relied on when the process that detects updates, giving birth to After signal specific, the method also includes:
The signal specific is stored, for relying at least one process inquiry of the file updated.
8. a kind of process rebooting device comprising:
Generation module when the file suitable for relying on when the process that detects updates, generates signal specific;
Stopping modular, suitable for being in idle condition or the process has handled current task, active inquiry whenever the process When to the signal specific, the process is out of service;Alternatively, whenever the process passively receives the signal specific, and In the process is in idle condition or after the process handled current task, the process is out of service;
Restart module, suitable for restarting the process, and loads the updated file.
9. a kind of calculating equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of process method for restarting described in any one of 1-7.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute such as the corresponding operation of process method for restarting of any of claims 1-7.
CN201810712658.3A 2018-06-29 2018-06-29 Process restarting method and device, computing equipment and computer storage medium Active CN109032777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810712658.3A CN109032777B (en) 2018-06-29 2018-06-29 Process restarting method and device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810712658.3A CN109032777B (en) 2018-06-29 2018-06-29 Process restarting method and device, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109032777A true CN109032777A (en) 2018-12-18
CN109032777B CN109032777B (en) 2021-02-05

Family

ID=65521389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810712658.3A Active CN109032777B (en) 2018-06-29 2018-06-29 Process restarting method and device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109032777B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001147814A (en) * 1999-11-18 2001-05-29 Seiko Epson Corp Start processing updating device
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN100543683C (en) * 2006-12-26 2009-09-23 华为技术有限公司 The method and system that process is monitored
CN101861567A (en) * 2007-11-16 2010-10-13 诺基亚公司 Methods, apparatuses and computer program product for automatic download of software dependencies on installation
CN102999384A (en) * 2011-09-12 2013-03-27 微软公司 Managing processes within suspend states and execution states
CN103370694A (en) * 2011-02-18 2013-10-23 起元技术有限责任公司 Restarting data processing systems
CN104461723A (en) * 2014-12-16 2015-03-25 北京奇虎科技有限公司 Process control method, device and system
CN105117265A (en) * 2015-09-17 2015-12-02 北京金山安全软件有限公司 File upgrading method and device and terminal
CN105893076A (en) * 2015-12-25 2016-08-24 乐视致新电子科技(天津)有限公司 Over the air upgrade method and device
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001147814A (en) * 1999-11-18 2001-05-29 Seiko Epson Corp Start processing updating device
CN100543683C (en) * 2006-12-26 2009-09-23 华为技术有限公司 The method and system that process is monitored
CN101861567A (en) * 2007-11-16 2010-10-13 诺基亚公司 Methods, apparatuses and computer program product for automatic download of software dependencies on installation
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN103370694A (en) * 2011-02-18 2013-10-23 起元技术有限责任公司 Restarting data processing systems
CN102999384A (en) * 2011-09-12 2013-03-27 微软公司 Managing processes within suspend states and execution states
CN104461723A (en) * 2014-12-16 2015-03-25 北京奇虎科技有限公司 Process control method, device and system
CN105117265A (en) * 2015-09-17 2015-12-02 北京金山安全软件有限公司 File upgrading method and device and terminal
CN105893076A (en) * 2015-12-25 2016-08-24 乐视致新电子科技(天津)有限公司 Over the air upgrade method and device
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device

Also Published As

Publication number Publication date
CN109032777B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
JP6602435B2 (en) Parallel execution of continuous event processing (CEP) queries
JP2019517043A5 (en)
CN108123851A (en) The lifetime detection method and device of main and subordinate node synchronization link in distributed system
CN107333248B (en) A kind of real-time sending method of short message and system
US20100100891A1 (en) Method and system for data preparation and communication between software applications
JP2013520748A5 (en)
CN107643904B (en) Method, device and medium for detecting code submission log and electronic equipment
WO2020237798A1 (en) Upgrade method and device
CN108268365A (en) Abnormal task method for implanting, device and system
CN106453501A (en) Method and apparatus for modifying configuration information of service
CN104408110B (en) The method, apparatus and system of request of data
CN110225078A (en) A kind of application service update method, system and terminal device
WO2018000878A1 (en) Distributed task processing method and apparatus
CN105808347A (en) Cluster server deployment calculation method and device
CN108365989A (en) Event-handling method and device
CN109905263A (en) A kind of automation O&M deployment system
CN109359060A (en) Data pick-up method, apparatus calculates equipment and computer storage medium
US9772928B2 (en) Distributed kernel thread list processing for kernel patching
CN108304213A (en) Run the hot restorative procedure and device of program
CN109032777A (en) Process method for restarting, calculates equipment and computer storage medium at device
CN105512332A (en) Method for linking and adjusting data between databases, device and system
CN108062224A (en) Data read-write method, device and computing device based on file handle
CN108121514A (en) Metamessage update method, device, computing device and computer storage media
CN109978644B (en) Information processing method, device and system
US20160125463A1 (en) Pre-Generating Blank Application Instances to Improve Response Time

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
TA01 Transfer of patent application right

Effective date of registration: 20201203

Address after: 1765, 15 / F, 17 / F, building 3, 10 Jiuxianqiao Road, Chaoyang District, Beijing 100020

Applicant after: Beijing Hongxiang Technical Service Co., Ltd

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant