pragma Task_Dispatching_Policy(FIFO_Within_Priorities); with Ada.Real_Time; use Ada.Real_Time; with Ada.Dynamic_Priorities; use Ada.Dynamic_Priorities; -- with Rtl_Pt1; -- use Rtl_Pt1; procedure Self_Dyn_Prior is task T1 is pragma Priority(16); end T1; task T2 is pragma Priority(17); end T2; task T3 is pragma Priority(15); end T3; task body T1 is Next : Time; Period : Time_Span := Milliseconds (5); Time1 : Time; Time2 : Time; begin Next := Clock + Period; loop Time1 := Clock; Time2 := Clock + Milliseconds(2); while Time1