<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="event-scheduler-thread-states">
      </a>
      10.14.9 Event Scheduler Thread States
     </h3>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045220941504">
  </a>
  <a class="indexterm" name="idm46045220940016">
  </a>
  <p>
   These states occur for the Event Scheduler thread, threads that
        are created to execute scheduled events, or threads that
        terminate the scheduler.
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      <a class="indexterm" name="idm46045220937184">
      </a>
      <a class="indexterm" name="idm46045220935696">
      </a>
      <code class="literal">
       Clearing
      </code>
     </p>
     <p>
      The scheduler thread or a thread that was executing an event
            is terminating and is about to end.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a class="indexterm" name="idm46045220932224">
      </a>
      <a class="indexterm" name="idm46045220930736">
      </a>
      <code class="literal">
       Initialized
      </code>
     </p>
     <p>
      The scheduler thread or a thread that executes an event has
            been initialized.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a class="indexterm" name="idm46045220927280">
      </a>
      <a class="indexterm" name="idm46045220925776">
      </a>
      <code class="literal">
       Waiting for next activation
      </code>
     </p>
     <p>
      The scheduler has a nonempty event queue but the next
            activation is in the future.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a class="indexterm" name="idm46045220922288">
      </a>
      <a class="indexterm" name="idm46045220920784">
      </a>
      <code class="literal">
       Waiting for scheduler to stop
      </code>
     </p>
     <p>
      The thread issued
      <code class="literal">
       SET GLOBAL
            event_scheduler=OFF
      </code>
      and is waiting for the
            scheduler to stop.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a class="indexterm" name="idm46045220916576">
      </a>
      <a class="indexterm" name="idm46045220915088">
      </a>
      <code class="literal">
       Waiting on empty queue
      </code>
     </p>
     <p>
      The scheduler's event queue is empty and it is
            sleeping.
     </p>
    </li>
   </ul>
  </div>
 </div>
 <br/>
</div>
