Advertisement
Javic9

Untitled

May 2nd, 2020
3,753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.67 KB | None | 0 0
  1. with PutterServer; use PutterServer;
  2. procedure PutterClient is
  3.    
  4.    task type a;
  5.    task body a is
  6.    begin
  7.       for i in 0..5 loop
  8.      pantalla.print("Tarea A: ",i);
  9.    end loop;
  10.    
  11.    end a;
  12.    
  13.    type Ref_a is access a;
  14.    Y:Ref_a:= new a;
  15.    
  16.    task type b;
  17.    task body b is
  18.    begin
  19.       for i in 0..5 loop
  20.      pantalla.print("Tarea B: ",i);
  21.    end loop;
  22.    
  23.    end b;
  24.    
  25.    type Ref_b is access b;
  26.    X:Ref_b:= new b;
  27.    
  28.    task type c;
  29.    task body c is
  30.    begin
  31.       for i in 0..5 loop
  32.      pantalla.print("Tarea C: ",i);
  33.    end loop;
  34.    
  35.    end c;
  36.    
  37.    type Ref_c is access c;
  38.    Z:Ref_c:= new c;
  39.    
  40. begin
  41.    null;
  42. end PutterClient;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement