# PRIORITY

Parallel Directive Clause: Specifies that the generated tasks have the indicated priority for execution.

## Syntax

PRIORITY (priority-value)

priority-value | Provides a hint for the priority of task execution order. priority-value must evaluate to a non-negative scalar integer value.

Among all tasks ready to be executed, higher priority tasks (those with a higher numerical value of priority-value) are recommended to execute before lower priority tasks. A program that relies on task execution order being determined by this priority-value may have unspecified behavior.

At most one PRIORITY clause can appear in the directive.

If this clause is not specified, tasks generated by the construct have a task priority of zero (the default).

Parent topic: O to P