In my app there are few threads with while-on-volatile-boolean
loops and BlockingQueue
s for quite simple objects-messages they process (pipelined architecture).
Recently I've encountered android.os.Looper
class with it's friends, that seems to do the same job, but they are placed in API, so are there any benefits(especially performance) of using them instead of handwritten loops with explicit queues? or is it just some kind of "API sugar"?