11 March 2009

How Priority is Assigned to Tasks in ADA

procedure PRIORITY is

task A

task body A is

pragma PRIORITY(5);

begin

end A;

task B

task body B is

pragma PRIORITY(2);

begin

end B;

task C

task body C is

pragma PRIORITY(1);

begin

end C;

begin

–Procedure body

end PRIORITY

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.


0 comments:

Post a Comment

Powered by Blogger.

About Me

Featured Post

5G Network Simulation in NS3 using mmWave | NS3 Tutorial 2024

5G Network Simulation in NS3 Using mmWave This post shows the installation of ns3mmwave in Ubuntu 24.04 and simulates 5G networks in ns3. In...

Contact form

Name

Email *

Message *

Total Pageviews

Search This Blog

Pages

Pages

Pages - Menu

Most Popular

Popular Posts