Isshou wrote:
It seems that Windows is actually a lot nicer at killing programs then you can be, instead of the "kill -9 pid" surefire kill you can do, it will just do a "kill pid", which while it does send the termination command to the (program) it will not check to see if the (program) does terminate itself. So whatever the (program) does with that termination command may be up to the (program). It could very well treat it as an abort whatever it is doing or it might just have that side effect, afterwards it couldn't process the comman to termination but it is now mystically responsive again. This is mostly just observational, I don't know what Windows really does behind the scenes, but it's probably not that different.
Windows needs a kill -9 command somewhere because taskkill /F cannot kill everything, like crashed VM instances and some other voodoo processes (not counting
Robin Hood-type viruses here however).
BruceMorgan wrote:
Wha??? What you describe doesn't exist...
The "window message handling thread" is
the main thread in the vast majority of GUI Windows apps. Unless the
developer coded otherwise, everything is on that thread. And multiple
UI threads are a hassle and a half, so most people who do
multithreading have non-GUI background threads.
My bad. I assumed it was commonplace to put winproc on its own thread.