Thread.priority

Sets the scheduling priority for the associated thread.

Note: Setting the priority of a thread that already terminated might have no effect.

  1. int priority [@property getter]
  2. int priority [@property setter]
    class Thread
    final @property
    void
    priority
    (
    int val
    )
    in { assert (val >= PRIORITY_MIN); assert (val <= PRIORITY_MAX); }

Parameters

val
Type: int

The new scheduling priority of this thread.

Suggestion Box / Bug Report