Thread.priority

Gets the scheduling priority for the associated thread.

Note: Getting the priority of a thread that already terminated might return the default priority.

  1. int priority()
    class Thread
    final @property
    int
    priority
    ()
  2. void priority(int val)

Return Value

Type: int

The scheduling priority of this thread.

Suggestion Box / Bug Report