Link to home
Start Free TrialLog in
Avatar of pakheng
pakheng

asked on

Do I know if a process is spinning or not by giving a process id?

I'm wondering if there is a function that I provide a process id and it returns a result indicating whether the process is SPINNING or not?

Thanks
Avatar of akshayxx
akshayxx
Flag of United States of America image

what do you mean when you say spinning ?..
also what OS, programming language
Avatar of pakheng
pakheng

ASKER

I mean the process is still there but maybe it's functioning properly, like going into a infinite loop.

I'm writing C under UNIX.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of akshayxx
akshayxx
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
pakheng:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
my comment answers the question of cheking the status for a process with given pid.. for further help, asker needs to give feedback

recommendation. award to akshayxx OR delete