Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MPenz1
New Contributor II
1,784 Views

List thread of process

Jump to solution

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
63 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
63 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
64 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

MPenz1
New Contributor II
63 Views

Thanks a lot.

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

Reply