[I would be vague in my description of the problem as my knowlege in this area is limited. Please excuse.]
I was reading up on Threads in Android and wanted to know about how inter-thread communication happens over message loops, in general.
In Android, when Looper.prepare() is called inside run method of any
thread, a message queue is initialized for that thread. Other threads, can post messages to this queue. To handle these messages, a handler needs to be bound to the message queue. The Handler(class) will have callbacks which would be invoked whenever appropriate messages are posted in the thread's message queue.
Is this a standard way/mechanism for inter-thread communication?
Any links etc. that discuss this topic are appreciated.
Thanks.