Check if thread is waiting for input or frozen

  • Thread starter Thread starter Gidi
  • Start date Start date
G

Gidi

Hi,

Is it possible to have thread that will check if another thread is waiting
for User input or frozen?

thanks,
Gidi.
 
Hi,

Is it possible to have thread that will check if another thread is waiting
for User input or frozen?

thanks,
Gidi.

Hi,
Check thread's isAlive and ThreadState properties that may help you.

Thanks,

Onur Güzel
 
Define "frozen".  That's not a standard technical term in Windows  
programming and could mean any variety of things.

Generally, I think he means "not responding". I agree, however, that's
not very clear. Does it mean not receiving user input, or not using
any
CPU time or...
That said, it should not be necessary for you to do this.  You will  
probably get better advice if you explain why it is you think you want to  
do this and what you hope to accomplish.

I would imagine he's looking for a heartbeat sort of mechanism to see
whether a program has "died" and needs to be restarted. Having written
more than my share, it sounds like the description given.

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top