This question would probably also apply to the general world of Java threads...
I have a thread that I use like so (this is in the run
method):
Looper.prepare();
Handler rHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
//ommited...
}
};
Looper.loop();
My question is whether the thread is using CPU while it's waiting for things to be pushed to the Handler? Or is it really "sleeping"?
Can having a couple of such threads bog down the system?