I have seen that in htop's tree mode my multithreaded program has several processes under it. I know they are thread ids. But this id doesn't match the thread id that was returned by the pthread_create function.
int _id = pthread_create(&m_iAudioThreadID, NULL, AudioRecvThread, this);
Is the m_iAudioThreadID
supposed to be equal to the PID we see in htop's tree mode for a process? It doesn't though. How do I find the PID of htop's programmatically from my program? Thanks.