Thread source obtaining method, electronic equipment and computer readable storage device
The invention discloses a thread source obtaining method, electronic equipment and a computer readable storage device. The thread source obtaining method comprises the following steps: monitoring a thread creation behavior in a preset function library through a hook function; when the hook function...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a thread source obtaining method, electronic equipment and a computer readable storage device. The thread source obtaining method comprises the following steps: monitoring a thread creation behavior in a preset function library through a hook function; when the hook function monitors that the thread creation behavior occurs in the preset function library, obtaining a call stack which is captured by the hook function and corresponds to the thread creation behavior; and obtaining thread creation data which is contained in the call stack and is used for identifying a thread creation source. Through the mode, the source of the created thread can be effectively identified.
本申请公开了线程来源获取方法、电子设备以及计算机可读存储装置。线程来源获取方法包括:通过钩子函数监听在预设函数库的线程创建行为;在钩子函数监听到预设函数库发生线程创建行为时,获取钩子函数所捕获的与线程创建行为对应的调用栈;获取调用栈所包含的用于识别线程创建来源的线程创建数据。通过上述方式,本申请能够有效地识别所创建线程的来源。 |
---|