deadlock-detect/detect-plugin/README.md

1.6 KiB
Raw Permalink Blame History

中文|[English](#C/C++/Java Process deadlock analysis)

C/C++/Java进程死锁分析

介绍

deadlock-detect 用于C/C++/Java进程的死锁检测分析帮助开发者在Linux系统下识别多线程死锁状态异常问题。

功能

  • 进程死锁检测

使用方法

检查依赖

依赖binutils、libc-bin、libc6-dbg软件包 安装方式sudo apt install binutils libc-bin gdb libc6-dbg -y 或 通过插件依赖管理器extension-dependency进行依赖检测与安装

进程死锁检测

执行ctrl+shift+p启动命令面板或者在编辑区域点击鼠标右键选择'C/C++/Java进程死锁检测',选择C/C++/Java进程死锁检测,默认会打开一个页面,按要求选择死锁类型、添加进程Pid用户密码即可。

C/C++/Java Process deadlock analysis

Introduction

deadlock-detect is a tool for deadlock detection and analysis in C/C++/Java processes, helping developers identify abnormal multi-threaded deadlock states on Linux systems.

Features

  • Process deadlock detection

Usage

Check dependencies

Depends on binutils, libc-bin, sshpass, libc6-dbg packages. Installation command: sudo apt install binutils libc-bin gdb sshpass libc6-dbg -y. Alternatively, use the extension-dependency package manager to check and install dependencies.

Process deadlock detection

Open the command palette with ctrl+shift+p or right-click in the editor area and select C/C++/Java Process Deadlock Detection. Select C/C++/Java Process Deadlock Detection, and a page will open. Choose the type of deadlock, add the process PID, and >user password as required.