Is there a way to know, at a real time, what threads are opened and what application opened them?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can look in
/proc/<PID>/task/(where<PID>is a process-ID) which will have a number of subdirectories, each with the name equal to the thread-ID of one of the threads in that task.Note that this is only sort-of real-time though — unless you were to “freeze” the entire system for the duration, the information you get can always be stale, because a process may create or destroy threads even as you’re looking at the data.