I'm going to start adding random from 0 to 5 minutes sleeps on my programs. To give the user a time to rest and relax.
post
Task Manager is weak.
Strong users use kill -9
replies:
I was wondering if this post was headed in the direction that a user program typically does nothing most of the time, since it does its work and then is paused by kernel or it voluntarily gives execution away to wait for a trap or interrupt. Or it could be waiting for disk access which is like a millennia in terms of CPU time.
replies:
permalink
fedilink
source
parent
I was expecting it to be about GUI programs just waiting for an input.
Because when it hangs, it's most probably either doing something long, or something that got elongated due to external factors, which ended up being programmed into the GUI thread. So definitely not idling.
all 15 comments