?
Solved

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

Posted on 2003-03-04
6
Medium Priority
?
212 Views
Last Modified: 2010-04-17
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
Comment
Question by:pakheng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 8

Expert Comment

by:akshayxx
ID: 8069619
what do you mean when you say spinning ?..
also what OS, programming language
0
 

Author Comment

by:pakheng
ID: 8073598
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
 
LVL 8

Accepted Solution

by:
akshayxx earned 100 total points
ID: 8076195
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
 

Expert Comment

by:CleanupPing
ID: 9447366
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
 
LVL 8

Expert Comment

by:akshayxx
ID: 9448597
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Six Sigma Control Plans

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question