CN101408851A - System and method for emergently stopping application program - Google Patents

System and method for emergently stopping application program Download PDF

Info

Publication number
CN101408851A
CN101408851A CNA2007102019799A CN200710201979A CN101408851A CN 101408851 A CN101408851 A CN 101408851A CN A2007102019799 A CNA2007102019799 A CN A2007102019799A CN 200710201979 A CN200710201979 A CN 200710201979A CN 101408851 A CN101408851 A CN 101408851A
Authority
CN
China
Prior art keywords
application program
object event
message queue
timing
incident
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.)
Pending
Application number
CNA2007102019799A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNA2007102019799A priority Critical patent/CN101408851A/en
Publication of CN101408851A publication Critical patent/CN101408851A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an urgent suspension method for an application program, including operating the application program, loading message queues, defining a target incident during suspension and an execution action corresponding to the target incident and setting the timing interval of an incident triggering the search for message queues; beginning timing; intercepting the instruction information generated by the operation of a user by an operating system, and arranging the instruction information in the message queues according to the sequence and priority; sending the incidents in the message queues to an operating application program for execution by the operating system according to the order of the message queues; when the timing interval is up, searching the message queue and whether a target incidence in the current message queue exists or not; when the incidence exists, triggering and executing the execution action corresponding to the target incidence. The invention also provides an urgent suspension system of the application program and can still rapidly respond to the operation of a user when the operating system is not available to send information to the application program.

Description

Urgent Break-Up System of application program and method
Technical field
The present invention relates to a kind of urgent Break-Up System and method of application program.
Background technology
Operation system of computer is the incident that the message system of dependence itself comes process user to trigger.When user key-press or rolling mouse cause system event to take place, operating system is stored in these incidents in the corresponding application message queue, incident can be always be stored in the message queue with the form of message to be finished message and control is turned back to operating system up to application program, and at this moment operating system will send to application program to the following a piece of news in the message queue.When our program bouncing busy hour, operating system can't be descended the processing of a piece of news all the time in the end that waits for the arrival of news and handle before finishing dealing with.This time, operating system does not have control, can't upgrade the interface of application system, no matter how we operate mouse and keyboard, operating system all can't respond our these operations (i.e. the information of Fa Songing), computing machine just occur stopping up system in case of system halt even situation, even be reappointed or reelected consecutively the affair manager sometimes and all can't access, can only be by very long wait, perhaps directly press system reset key and restart computer system and solve.
Therefore be necessary to provide a kind of system and method that can address the above problem.
Summary of the invention
In view of above content, the invention provides the urgent pause method of a kind of application program, be used for application program and move the operation that suspends application program when busy.
The urgent pause method of this application program comprises step: run application, the timing of carrying out this Application Program Interface simultaneously redraws the operation with the response user; Be written into message queue, object event when definition suspends and the execution of this object event correspondence action, the timing of the search message of setting triggering simultaneously queue events is at interval; Pick up counting; Operating system is intercepted and captured the command information that user's operation is produced; Operating system is lined up with priority the command information of intercepting and capturing sequentially in message queue; In this application program operational process, operating system sends to the incident in this message queue this application program successively and carries out according to the order in the message queue; When not arriving the timing interval, the return system intercepts and captures the step that the user operates the command information that is produced; When reaching the timing interval, trigger the incident of search message formation; Respond this trigger event, the search message formation searches whether there is object event in the current message queue; When not having object event in the message queue, the return system intercepts and captures the step that the user operates the command information that is produced; When having object event in the message queue, trigger and carry out the pairing execution action of this object event.
In view of above content, the invention provides the urgent Break-Up System of a kind of application program, be used for application program and move the operation that suspends application program when busy.
The urgent Break-Up System of this application program comprises: system initialization module, be written into message queue when being used to run application, definition trigger the search message formation incident timing at interval, object event and the pairing execution action of this object event when defining this application program and promptly suspending; Timer is used for the incident that timing and every timing just trigger the search message formation at interval; Search module is used for when timer has triggered the incident of search message formation, and the search current message queue is searched current message queue and whether had object event; Execution module is used for when there is object event in message queue, carries out the execution action of this object event correspondence.
Utilize urgent Break-Up System of application program provided by the present invention and method that the pattern of traditional " operating system sends message → application program and carries out message " is changed into " application program is sought message → application program and carried out message ", thereby can can't be when application program sends message in operating system, still can respond user's operation fast, avoid obstruction, deadlock or the collapse of operating system, reduced unnecessary loss.
Description of drawings
Fig. 1 is the functional block diagram of the urgent Break-Up System preferred embodiment of application program of the present invention.
Fig. 2 is the process flow diagram of the preferred embodiment of the urgent pause method of application program of the present invention.
Embodiment
Consulting shown in Figure 1ly, is the functional block diagram of the urgent Break-Up System preferred embodiment of application program of the present invention.The urgent Break-Up System 1 of this application program may operate at the operation of monitoring application program in arbitrary the computing machine.
The urgent Break-Up System 1 of this application program comprises system initialization module 10, timer 11, search module 12, and execution module 13.
This system initialization module 11 is used for when the arbitrary application program of computing machine is moved, be written into message queue, set the timing interval of the incident that triggers the search message formation, and the timing that begins to carry out this Application Program Interface simultaneously redraws the operation with the response user, thereby the operation of beginning application programs and user's operation monitor.Described user's operation is such as button, mouse action etc.Described timing at interval as every interval 2 seconds, or every interval 5 seconds etc.
This system initialization module 10 also is used for the objective definition incident, and the pairing execution action of this object event.Usually this object event is a hot key.That is when pressing this hot key, operating system just receives an object event, and this object event is lined up in current message queue.The pairing execution action of this object event comprises execution that suspends this operating application program or the action of carrying out other appointments.For example, when the program that is defined in is busy, suspends the processing action of this application program or carry out the action of other appointments by the Esc key, this defined object event is the code of face as follows:
The msg.message==WM_KEYDOWN key-press event
The msg.wParam==VK_ESCAPE button is Esc
Timer 11 is used for timing, when reaching the timing interval of setting, triggers the incident of search current message queue.For example, the timing of definition is to trigger the incident of once searching for current message queue every 5 seconds at interval, and timer picks up counting from time T, and the unit of time T is second, then whenever timing triggers once the incident of this search current message queue to T+n*5 during second, wherein n is a natural number.
Search module 12 is used for searching for this message queue when timer 11 has triggered the incident of search message formation, to judge whether to exist defined object event.
Execution module 13 be used for when search module 12 when message queue has searched object event, just carry out the execution action of defined this object event correspondence, comprise that operating application program is suspended handles or withdraw from circulation.
Consulting shown in Figure 2ly, is the process flow diagram of the urgent pause method of application program of the present invention.
Step S20, application program in the computing machine brings into operation, system initialization module 10 is written into message queue, set the timing interval of the incident that triggers the search message formation, and the execution of objective definition incident and this object event correspondence action, and the timing that begins to carry out this Application Program Interface simultaneously redraws the operation with the response user, thereby the operation of application programs and user's operation monitors.Described user's operation is such as button, mouse action etc.Described timing at interval as every interval 2 seconds, or every interval 5 seconds etc.Usually this object event is a hot key, that is, when program is busy, presses this hot key and just carry out the pairing execution action of this object event, comprises processing action that suspends this application program or the action of carrying out other appointments.For example, when the program that is defined in is busy, suspends the processing action of this application program or carry out the action of other appointments by the Esc key, this defined object event is the code of face as follows:
The msg.message==WM_KEYDOWN key-press event
The msg.wParam==VK_ESCAPE button is Esc
Step S21, simultaneously, this system initialization module starts timer 11 and picks up counting.For example, the timing of definition is to trigger the incident of once searching for current message queue every 5 seconds at interval, and timer picks up counting from time T, and the unit of time T is second, then whenever timing triggers once the incident of this search current message queue to T+n*5 during second, wherein n is a natural number.
Step S22, when the user operated, operating system was intercepted and captured the command information that this user's operation is produced.
Step S24, operating system is ranked with priority the command information of intercepting and capturing sequentially in message queue.
Step S26, in the application program operational process, operating system is according to the order in the message queue, successively the incident in the message queue is sent to application program and carries out, last not complete before, application program can not go to carry out the incident of back.
Step S28, judge whether to reach the search message formation that sets incident timing at interval.When not arriving the timing interval, return step S22, operating system continues to intercept and capture the command information that the user operates generation.When arriving the timing interval, this timer 11 triggers the incident of search message formations.
Step S30, when arriving the timing interval, the incident of the search message formation of search module 12 these triggerings of response is carried out search operation to current message queue, judges whether to exist object event, as defined hot key in step S20.When in current message queue, not having object event, return step S22.
Step S32, when having object event in current message queue, execution module 13 is just carried out the pairing action of this object event, as makes operating application program withdraw from circulation or time-out processing etc.

Claims (6)

1. urgent pause method of application program is used for application program and moves the operation that suspends this application program when busy, it is characterized in that the method comprising the steps of:
Run application, the timing of carrying out this Application Program Interface simultaneously redraws the operation with the response user;
Be written into message queue, object event when definition suspends and the execution of this object event correspondence action, the timing of the search message of setting triggering simultaneously queue events is at interval;
Pick up counting;
Operating system is intercepted and captured the command information that user's operation is produced;
The command information of intercepting and capturing is lined up in message queue with priority sequentially;
In this application program operational process, operating system sends to the incident in this message queue this application program successively and carries out according to the order in the message queue;
When not arriving the timing interval, the return system intercepts and captures the step that the user operates the command information that is produced;
When reaching the timing interval, trigger the incident of search message formation;
Respond this trigger event, the search message formation searches whether there is object event in the current message queue;
When not having object event in the message queue, the return system intercepts and captures the step that the user operates the command information that is produced;
When having object event in the message queue, trigger and carry out the pairing execution action of this object event.
2. the urgent pause method of application program as claimed in claim 1 is characterized in that, the object event when described definition suspends is to press the Esc key.
3. the urgent pause method of application program as claimed in claim 1 is characterized in that, the pairing execution action of described object event is the execution that suspends application program.
4. urgent Break-Up System of application program is used for application program and moves the operation that suspends application program when busy, it is characterized in that this system comprises:
System initialization module is written into message queue when being used to run application, definition trigger the search message formation incident timing at interval, object event and the pairing execution action of this object event when defining this application program and promptly suspending;
Timer is used for the incident that timing and every timing just trigger the search message formation at interval;
Search module is used for when timer has triggered the incident of search message formation, and the search current message queue is searched current message queue and whether had object event; And
Execution module is used for when there is object event in message queue, carries out the execution action of this object event correspondence.
5. the urgent Break-Up System of application program as claimed in claim 4 is characterized in that, the object event when described definition suspends is to press the Esc key.
6. the urgent Break-Up System of application program as claimed in claim 4 is characterized in that, the pairing execution action of described object event is the execution that suspends application program.
CNA2007102019799A 2007-10-09 2007-10-09 System and method for emergently stopping application program Pending CN101408851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007102019799A CN101408851A (en) 2007-10-09 2007-10-09 System and method for emergently stopping application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007102019799A CN101408851A (en) 2007-10-09 2007-10-09 System and method for emergently stopping application program

Publications (1)

Publication Number Publication Date
CN101408851A true CN101408851A (en) 2009-04-15

Family

ID=40571872

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007102019799A Pending CN101408851A (en) 2007-10-09 2007-10-09 System and method for emergently stopping application program

Country Status (1)

Country Link
CN (1) CN101408851A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853180A (en) * 2010-05-25 2010-10-06 中兴通讯股份有限公司 Method for realizing application management and non-intelligent mobile terminal
CN102541641A (en) * 2011-12-28 2012-07-04 奇智软件(北京)有限公司 Method and device for browser message processing
WO2013097663A1 (en) * 2011-12-28 2013-07-04 北京奇虎科技有限公司 Message processing method and device
CN103516585A (en) * 2012-06-29 2014-01-15 北京奇虎科技有限公司 Method and system for distributing messages according to priorities
CN104216770A (en) * 2011-12-28 2014-12-17 北京奇虎科技有限公司 Browser message processing method and device
CN104239130A (en) * 2014-08-15 2014-12-24 北京配天技术有限公司 Control method of operating instruction response by human-computer interaction interface and terminal
CN111443957A (en) * 2020-03-24 2020-07-24 华为技术有限公司 Application stuck processing method and device and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853180A (en) * 2010-05-25 2010-10-06 中兴通讯股份有限公司 Method for realizing application management and non-intelligent mobile terminal
CN102541641A (en) * 2011-12-28 2012-07-04 奇智软件(北京)有限公司 Method and device for browser message processing
WO2013097663A1 (en) * 2011-12-28 2013-07-04 北京奇虎科技有限公司 Message processing method and device
CN104216770A (en) * 2011-12-28 2014-12-17 北京奇虎科技有限公司 Browser message processing method and device
CN103516585A (en) * 2012-06-29 2014-01-15 北京奇虎科技有限公司 Method and system for distributing messages according to priorities
CN104239130A (en) * 2014-08-15 2014-12-24 北京配天技术有限公司 Control method of operating instruction response by human-computer interaction interface and terminal
WO2016023493A1 (en) * 2014-08-15 2016-02-18 北京配天技术有限公司 Control method of human-machine interface responding to operation instruction and terminal
US10452402B2 (en) 2014-08-15 2019-10-22 Shenzhen A&E Intelligent Technology Institute Co., Ltd. Operation instruction response control method and terminal for human-machine interface
CN104239130B (en) * 2014-08-15 2020-09-11 北京配天技术有限公司 Control method and terminal for responding to operation instruction by human-computer interaction interface
CN111443957A (en) * 2020-03-24 2020-07-24 华为技术有限公司 Application stuck processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN101408851A (en) System and method for emergently stopping application program
CN100535879C (en) Built-in real-time system interrupt handling device and method thereof
CN105511963B (en) memory optimization method and system based on Android system
CN102314561A (en) Automatic analysis method and system of malicious codes based on API (application program interface) HOOK
CN106844017B (en) Method and device for processing events by website server
CN101937392B (en) Dynamic defect detection system for embedded software
CN101276296B (en) Method for realizing message response mechanism on embedded computer system
JP5351853B2 (en) Information processing terminal and resource release method
CN103838593A (en) Method and system for restoring virtual machine, controller, server and hosting host
JP2008140182A5 (en)
JP2006277115A (en) Abnormality detection program and abnormality detection method
CN111095221A (en) Method and terminal for processing refresh display exception
CN102654831A (en) Device and method for intensively controlling WEB page event and state
CN101470635A (en) Method for multi-virtual processor synchronous scheduling and computer thereof
CN101853204A (en) Complex control testing system in windows environment
CN116627620B (en) Multi-task real-time concurrent processing method suitable for embedded SMIF loading mechanism
CN105550095B (en) Host behavior master based on virtualization passively combines detecting system and method
CN102364434A (en) Method for integrating Wine and Android mouse input
CN105630664B (en) Reverse debugging method and device and debugger
CN102375759B (en) Utilize the method that finite state machine prevents code rewriting
CN108762886A (en) The fault detect restoration methods and system of virtual machine
CN102023887B (en) Power supply management method of computer system and computer system
WO2018219022A1 (en) Video processing method, terminal and computer storage medium
CN114090270A (en) Thread management method and device, electronic equipment and computer readable storage medium
WO2013051067A1 (en) Computer and computer-control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090415