giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.08k stars 1.37k forks source link

[mac os] thread id is not the native_id #2420

Open sanchay-hai opened 1 month ago

sanchay-hai commented 1 month ago

Summary

Description

threads() function returns all the threads with id parameter. Documentation states that this is the native_id from threading, but on MAC OS that doesn't seem to be the case.

Confirmed that on Linux they match up.