Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9873 Discussions

List thread of process

MPenz1
New Contributor II
1,928 Views

Hi all,

i can't find a way to list thread of a process.

i try with "ps -t " but it doesn't work.

How can i do this?

Thanks

1 Solution
Diego_V_Intel
Employee
207 Views

Hello Ruscoff,

I found the following command that might be helpful for you:

lsof -p

Additional information about this command can be found in the following site: http://linux.die.net/man/8/lsof lsof(8): open files - Linux man page

Another alternative is installing the package htop. The package can be installed from the AlexT's repo. If you already have the Edison configured to fetch from this repo, then you just need to run the following command:

opkg install http://repo.opkg.net/edison/repo/core2-32/htop_1.0.3-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/htop_1.0.3-r0_core2-32.ipk

If you don't have the Edison configured, follow the steps shown in the following site: http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html Edison Package Repo Configuration Instructions.

Additional details about the htop command can be found in the following site: http://linux.die.net/man/1/htop htop(1): interactive process viewer - Linux man page

Regards,

Diego.

View solution in original post

3 Replies
Diego_V_Intel
Employee
207 Views

Hello Ruscoff,

You can use the command top to show the processes running. However, I'm not sure how to show the threads, let me investigate about it to see if I can find any useful command for this purpose.

Regards,

Diego.

Diego_V_Intel
Employee
208 Views

Hello Ruscoff,

I found the following command that might be helpful for you:

lsof -p

Additional information about this command can be found in the following site: http://linux.die.net/man/8/lsof lsof(8): open files - Linux man page

Another alternative is installing the package htop. The package can be installed from the AlexT's repo. If you already have the Edison configured to fetch from this repo, then you just need to run the following command:

opkg install http://repo.opkg.net/edison/repo/core2-32/htop_1.0.3-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/htop_1.0.3-r0_core2-32.ipk

If you don't have the Edison configured, follow the steps shown in the following site: http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html Edison Package Repo Configuration Instructions.

Additional details about the htop command can be found in the following site: http://linux.die.net/man/1/htop htop(1): interactive process viewer - Linux man page

Regards,

Diego.

MPenz1
New Contributor II
207 Views

Thanks a lot.

Tomorrow i'll try. I hope htop doesn't makes system unstable.

Reply