CN104391740A - Deadlock unlocking method - Google Patents

Deadlock unlocking method Download PDF

Info

Publication number
CN104391740A
CN104391740A CN201410632660.1A CN201410632660A CN104391740A CN 104391740 A CN104391740 A CN 104391740A CN 201410632660 A CN201410632660 A CN 201410632660A CN 104391740 A CN104391740 A CN 104391740A
Authority
CN
China
Prior art keywords
deadlock
business process
business
data
service
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
CN201410632660.1A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410632660.1A priority Critical patent/CN104391740A/en
Publication of CN104391740A publication Critical patent/CN104391740A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a deadlock unlocking method, which comprises the following steps that data in each running service process are backed up in real time; when the deadlock of the service processes occurs, all of the service processes are terminated, and all of the service processes are restarted; during the service process initialization, the backed up data are restored into each service process, each service process normally runs, and in addition, the service processing starts. The method has the advantages that the data of each service process are backed up in real time, the data are restored in real time after the restarting of each service process due to deadlock, the service is started, and the deadlock problem is simply and efficiently solved.

Description

The method of Dead lock
Technical field
The present invention relates to the online communication technology of a kind of broadband cat, especially by method that the LAN cause for gossip of broadband cat is now surfed the Net.
Background technology
Deadlock: refer to two or more process in the process of implementation, the phenomenon of a kind of mutual wait caused because of contention resource, if without External Force Acting, they all cannot advance down.Now claim system to be in deadlock state or system creates deadlock, these are called deadlock process in the process waited for mutually forever.
Deadlock has following several method process:
One, deadlock prevention
This is a kind of method that is comparatively simple and advance preventing intuitively.Method is by arranging some restrictive condition, goes one or several in four necessary conditions of destruction produce of deadlock, prevents deadlock occurs.Deadlock prevention is a kind of method comparatively easily realized, and is widely used.But because applied restrictive condition is often too strict, resource utilization ratio and throughput of system may be caused to reduce.
Two, Avoid deadlock
The method is the strategy belonging to advance preventing equally, but it does not need to take in advance various restriction go to destroy produce of deadlock four necessary conditions, but in the dynamic allocation procedure of resource, with going anti-locking system to enter unsafe condition someway, thus avoid deadlock occurs.
Summary of the invention
The technical matters that the present invention need solve is to provide a kind of method of simple, practical solution deadlock.
In order to solve the above problems, the present invention devises a kind of method of Dead lock, and it comprises the following steps:
Step 1: by the data real time backup at each business process run;
Step 2: when deadlock appears in business process, terminates all business process, and restarts all business process;
Step 3: during business process initialization by backup date restoring in each business process, each business process normally runs and starts to process business.
Improve further as the present invention, also comprise and set up shared drive, by the data real time backup of each business process in described shared drive.
Improve further as the present invention, after each business process starts process business, continue data of backing up in realtime.
Improve further as the present invention, further comprising the steps of: to detect all business process and whether occur deadlock; If there is deadlock, then perform step 2; If there is not deadlock, then return all business process of detection and whether occur deadlock step.
Improve further as the present invention, every 10 second wheels inquiries detect once all business process and whether occur deadlock.
The present invention is to the data real time backup of each business process, and after each business process of deadlock restart, real-time recovery data, commence business, and simple and high efficiencyly relieves Deadlock.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for Dead lock of the present invention.
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with embodiment, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.
The invention provides a kind of method of Dead lock, when system cloud gray model, the key business data of backing up in realtime required for all business process, meanwhile, preserves in the mode of shared drive and shares these data.When deadlock being detected, terminating and restarting all business process, after related service process initiation, the business datum of backup before recovering from shared drive, business process starts Processing tasks.
As shown in Figure 1, the method for Dead lock of the present invention comprises the following steps:
By the data real time backup at each business process run, back up the critical data that business process runs, be conducive to each business process and recover work at present task after restart.In the present embodiment, for the data of backup also establish shared drive, the data of backup be kept in this shared drive, each business process shares data each other.Shared drive can realize communication and the transmission of information of multiple business process by sharing.
The present invention by Deadlock Detection flow process every 10s go poll detect once all business process whether there is deadlock, if there is deadlock, Deadlock Detection flow process terminates all business process, and restarts all business process.If there is not deadlock, then return the step detecting all business process and whether occur deadlock.
After all business process are activated, enter initial work, now by backup date restoring in each business process, each business process normally runs, and relieves deadlock, starts to process business; And continue data of backing up in realtime, be saved in shared drive.
The present invention is to the data real time backup of each business process, and after each business process of deadlock restart, real-time recovery data, commence business, and simple and high efficiencyly relieves Deadlock.
Below only have expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (5)

1. a method for Dead lock, is characterized in that: comprise the following steps:
Step 1: by the data real time backup at each business process run;
Step 2: when deadlock appears in business process, terminates all business process, and restarts all business process;
Step 3: during business process initialization by backup date restoring in each business process, each business process normally runs and starts to process business.
2. the method for Dead lock according to claim 1, is characterized in that, also comprises and sets up shared drive, by the data real time backup of each business process in described shared drive.
3. the method for Dead lock according to claim 1, is characterized in that, after each business process starts process business, continues data of backing up in realtime.
4. the method for Dead lock according to claim 1, is characterized in that, further comprising the steps of: detect all business process and whether occur deadlock; If there is deadlock, then perform step 2; If there is not deadlock, then return all business process of detection and whether occur deadlock step.
5. the method for Dead lock according to claim 4, is characterized in that, every 10 second wheels inquiries detect once all business process and whether occur deadlock.
CN201410632660.1A 2014-11-11 2014-11-11 Deadlock unlocking method Pending CN104391740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410632660.1A CN104391740A (en) 2014-11-11 2014-11-11 Deadlock unlocking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410632660.1A CN104391740A (en) 2014-11-11 2014-11-11 Deadlock unlocking method

Publications (1)

Publication Number Publication Date
CN104391740A true CN104391740A (en) 2015-03-04

Family

ID=52609648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410632660.1A Pending CN104391740A (en) 2014-11-11 2014-11-11 Deadlock unlocking method

Country Status (1)

Country Link
CN (1) CN104391740A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665158A (en) * 2017-09-22 2018-02-06 郑州云海信息技术有限公司 A kind of storage cluster restoration methods and equipment
CN108052391A (en) * 2017-11-30 2018-05-18 努比亚技术有限公司 Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock
US10754684B2 (en) 2016-05-31 2020-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling process and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506826A (en) * 2002-12-09 2004-06-23 联想(北京)有限公司 Self-debugging and self-restarting method for computer application software
US6988112B2 (en) * 2000-05-31 2006-01-17 Nec Corporation Multi-program processing system and rollback method for file used therefor
CN101627581A (en) * 2007-02-09 2010-01-13 微软公司 Conflict resolution for multi-master synchronization of data for distributed devices
CN103064770A (en) * 2013-01-08 2013-04-24 哈尔滨工程大学 Dual-process redundancy transient fault tolerating method
CN103150236A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Parallel communication library state self-recovery method facing to process failure fault

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6988112B2 (en) * 2000-05-31 2006-01-17 Nec Corporation Multi-program processing system and rollback method for file used therefor
CN1506826A (en) * 2002-12-09 2004-06-23 联想(北京)有限公司 Self-debugging and self-restarting method for computer application software
CN101627581A (en) * 2007-02-09 2010-01-13 微软公司 Conflict resolution for multi-master synchronization of data for distributed devices
CN103064770A (en) * 2013-01-08 2013-04-24 哈尔滨工程大学 Dual-process redundancy transient fault tolerating method
CN103150236A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Parallel communication library state self-recovery method facing to process failure fault

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10754684B2 (en) 2016-05-31 2020-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling process and related device
CN107665158A (en) * 2017-09-22 2018-02-06 郑州云海信息技术有限公司 A kind of storage cluster restoration methods and equipment
CN108052391A (en) * 2017-11-30 2018-05-18 努比亚技术有限公司 Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock

Similar Documents

Publication Publication Date Title
US11256539B2 (en) Task processing method, apparatus, and system based on distributed system
WO2019182670A1 (en) Endpoint process state collector
JP2015515682A5 (en)
WO2004097632A3 (en) Managing locks and transactions
CN104391740A (en) Deadlock unlocking method
CN110083651B (en) Data loading method and device
CN104850460A (en) Service program thread management method
CN102867146B (en) Method and system for preventing computer virus from repeatedly infecting system
CN103995868A (en) Distributed system oriented global transaction manager and transaction handling method
CN104410698A (en) Initiation node abnormity processing method and device of share nothing cluster
US10417101B2 (en) Fault monitoring device, virtual network system, and fault monitoring method
CN108519918A (en) Distributed transaction processing method based on transaction chain
US20060277538A1 (en) Dynamic process recovery in a distributed environment
CN105306581A (en) Router and cloud disk based data synchronization method
CN107357664B (en) Method and device for realizing distributed lock
CN103297279A (en) Switching method of main and backup single disks of software control in multi-software process system
CN102023899A (en) Multithreaded data synchronization method and device
CN104410687A (en) Method for transmitting data among multiple groups of courses on basis of pipe
CN105337772A (en) System and method for backing up and restoring configuration of network equipment
CN104915252A (en) Process port management device and method
US11061864B2 (en) Clustered network file system server reclaim via decentralized, coordinated grace period
CN114153660A (en) Database backup method, device, server and medium
CN103902401A (en) Virtual machine fault tolerance method and device based on monitoring
CN108063782A (en) Node is delayed machine adapting method and device, node group system
WO2019000791A1 (en) Method and apparatus for remote process calling using asynchronous mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150304