LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-22-2009, 04:11 AM   #1
haseit
LQ Newbie
 
Registered: Jan 2009
Location: Colombo / Sri Lanka
Posts: 14

Rep: Reputation: 0
Get Process size and Thread count for a particular running process


Hi All,

I need you ppl help to solve a question basically a source code help. I need to get the Process size and the thread count which assign to it.
Eg: if the process name is skype in Linux i need to get the process size of it and the thread count as well.
Please help me on C/C++ source code.

I hope to using JNI to get these details to my java application. Please help me on the C/C++ source code.
Thank you in Advance.


Best Regards,
Hase
 
Old 01-22-2009, 04:29 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
ps -eo pid,nlwp,vsz,args

Last edited by Agrouf; 01-22-2009 at 04:30 AM.
 
Old 01-23-2009, 12:09 AM   #3
haseit
LQ Newbie
 
Registered: Jan 2009
Location: Colombo / Sri Lanka
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you Agroef
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 04:47 AM
How can I get the context info for a thread/process running in user mode? LostInLinux4ever Programming 1 05-23-2007 05:00 PM
choice of process vs thread girish_hilage Programming 2 05-11-2007 04:45 AM
`top` Irregularities - cpu count, percentage, process lists ColinAnderson Linux - Software 4 05-09-2007 07:41 PM
how to count the number of occurrences of a process beeblequix Linux - General 3 09-18-2006 05:17 PM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration