Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PROGRAM DEADLOCK DETECTION METHOD, STORAGE MEDIUM, DEVICE AND SYSTEM
Document Type and Number:
WIPO Patent Application WO/2019/006997
Kind Code:
A1
Abstract:
The present invention relates to the field of operating systems, and provides a program deadlock detection method, a storage medium, a device, and a system. The method comprises: S1: adding a hook function into a thread handle creation function, a signal event creation function, a mutex creation function, and a critical region creation function of a thread; S2: obtaining a current thread and a thread ID of the current thread corresponding to the thread handle creation function, the signal event creation function, the mutex creation function, and the critical region creation function by means of the hook function, respectively; S3: storing the obtained thread and thread ID, and resources owned by the obtained thread into a global field; S4: according to the thread ID in the global field, invoking a waiting function of a system to obtain the resources that each thread is waiting for in the global field; S5: selecting any two threads from the global field for deadlock determination. According to the present invention, the deadlock of a program can be effectively detected in a timely manner.

Inventors:
YANG LIANG (CN)
CHEN SHAOJIE (CN)
ZHANG WENMING (CN)
Application Number:
PCT/CN2017/117366
Publication Date:
January 10, 2019
Filing Date:
December 20, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
WUHAN DOUYU NETWORK TECH CO LTD (CN)
International Classes:
G06F9/46
Foreign References:
CN103761182A2014-04-30
CN106681811A2017-05-17
JP2014119964A2014-06-30
Attorney, Agent or Firm:
WUHAN ZHI QUAN PATENT AGENCY (CN)
Download PDF: