• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

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
0
pakheng
Asked:
pakheng
  • 3
1 Solution
 
akshayxxCommented:
what do you mean when you say spinning ?..
also what OS, programming language
0
 
pakhengAuthor Commented:
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
0
 
akshayxxCommented:
u can check the /proc directory .. if u have a directory with the name = pid of the process .. then the process is definitely there.
0
 
CleanupPingCommented:
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.
0
 
akshayxxCommented:
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
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now