Async Event Handlers and Threads

An async event handler is not a thread, but it is schedulable. The distinction is confusing, and it may lead to trouble.

A BoundAsyncEventHandler is permanently bound to a thread. That thread must always be available to run the bound AEH. That may save time since the platform will not need to do anything to bind the AEH's state to a thread, but it may not do anything. It is an implementation detail.

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.