How Priority is Assigned to Tasks in ADA
procedure PRIORITY is
task body A is
task body B is
task body C is
The above ADA code shows that static Priority of A is higher than B and B Over C. If two tasks have same priority then, the order of preference will be taken randomly.