Check out example codes for "mysql show full processlist". It will help you in understanding the concepts better.

Code Example 1

select * from INFORMATION_SCHEMA.PROCESSLIST where db = 'your_database_name_here';

Code Example 2

SHOW FULL PROCESSLIST

Learn ReactJs, React Native from akashmittal.com