Messages Between Threads Handlers

After multiple threads run concurrently, such as a main application thread and a background thread, there needs to be a way to communicate between them. Some examples are

■ A main thread serves time-critical information and passes messages to the background time-consuming thread to update.

■ A large computation completes and sends a message back to the calling thread with the result.

This can be accomplished with handlers, which are objects for sending messages between threads. Each handler is bound to a single thread, delivering messages to it and executing commands from it.

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook


Post a comment