(20) task ::= "task" identifier opt-properties ";"
(122) opt-properties ::= [ "{" properties "}" ]
(123) properties ::= { property }
(21) task-property ::= ( "period" const-expr time-unit | "delay" const-expr time-unit | "priority" positive-int-const | "scheduling" "real-time" | "stack" positive-int-const size-unit ) ";"
(40) codel-property ::= opt-async "codel" ( codel ";" | fsm-codel ";" )
Tasks define an execution context suitable for running activities
(see Component declaration). A task may define a state machine and
associated codels (see Codel declaration). The state machine starts in
the start
state when the task is created during component
initialization.
Tasks are named can also define the following properties:
period
delay
priority
scheduling real-time
stack