The Scheduler does not create any threads. This means that event dispatching must be performed by the user, either in the main thread or in a dedicated worker thread, by repeatedly calling OnixS::ICE::BOE::Scheduling::SessionScheduler::dispatchEvents() in a loop. The following example demonstrates how to run event dispatching in the main thread: