MySQL 8.0.40
Source Code Documentation
COM_PROCESS_INFO
Warning
As of 5.7.11 COM_PROCESS_INFO is deprecated in favor of COM_QUERY with SHOW PROCESSLIST

Get a list of active threads

Returns
Text Resultset or a ERR_Packet
Payload
TypeNameDescription
int<1> command 0x0A: COM_PROCESS_INFO
See also
mysql_list_processes, dispatch_command, mysqld_list_processes