Tag

LWP

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 19, 2019 · Databases

Debugging MySQL Threads and LWP IDs with GDB: Building a Debug Environment and Analyzing Thread IDs

This article explains MySQL thread fundamentals, distinguishes PID, LWP ID and Thread TID, shows a small C program to observe these IDs, demonstrates how to map MySQL threads to LWP IDs using system tools and SQL, and provides a step‑by‑step guide to set up a GDB‑based debugging environment on Linux.

GDBLWPLinux
0 likes · 16 min read
Debugging MySQL Threads and LWP IDs with GDB: Building a Debug Environment and Analyzing Thread IDs