Re: Check if thread is waiting for input or frozen

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Sun, 18 May 2008 16:58:09 -0700, Matt <matttelles@xxxxxxxxxxx> wrote:

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...

The phrase "not responding" isn't very clear either. What does "responding" mean? For a thread with a message pump, this often (though not necessarily) means that the thread is pumping messages. But most threads don't have a message pump. And many types of threads can sit and process for long periods of time without ever interacting with any other thread. Are those threads "not responding", even though they are working exactly as designed?

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.

Well, only Gidi can elaborate. Thus my question. We can speculate until the cows come home, without a more descriptive question I don't see any way to offer practical advice.

Pete
.



Relevant Pages

  • Re: hacker challenge - traverse a list
    ... Omemory, and what I call O'memory. ... I am happy to concede that there are plenty of people in this newsgroup who ... programming with interest and enthusiasm. ... meant "the group of people in this newsgroup responding to Harter". ...
    (comp.programming)
  • Re: A/B split testing on PHP built website
    ... responding. ... Ah well,prior to programming, I had quite a lengthy spell in Marketing ... However, if he wants to do something like that, a random A/B split is ... And randomly changing between two sites is even worse - it looks like your client can't make up his mind which he wants. ...
    (comp.lang.php)
  • Re: order changed?
    ... There is no "best way" in programming, that is just personal, ... differend code from when time/cpu is at the essense, but the randomness ... different sequences, so randomizing those would be very fast cpu wize. ... But if you do serverside coding on a heavily used server, the cpu time is ...
    (comp.lang.javascript)
  • Re: was CP/M text only or did it have graphics similiar to, say, CGA ?
    ... At that point I was programming only in assembler and it was a ... >9918 which could potentially require a lot of CPU time to handle. ... I did replace the batteries on the Advent clock ...
    (comp.os.cpm)
  • Re: A/B split testing on PHP built website
    ... responding. ... Ah well,prior to programming, I had quite a lengthy spell in Marketing ... waste of time in this scenario. ... Of course, if the op wants to redefine the meaning of "Performance", he ...
    (comp.lang.php)