Advertisement
Guest User

Untitled

a guest
Jul 11th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.49 KB | None | 0 0
  1. program FirstTry;
  2. var
  3.     status : boolean;
  4.    
  5. process type P1;
  6.     begin
  7.         while (status = false) do;
  8.         status := false;
  9.         writeln('Process 01');
  10.         status := true;
  11.     end;
  12.    
  13. process type P2;
  14.     begin
  15.         while (status = false) do;
  16.         status := false;
  17.         writeln('Process 02');
  18.         status := true;
  19.     end;
  20.    
  21. var
  22.     O : array[1..10] of P1;
  23.     T : array[1..10] of P2;
  24.     i : integer;
  25.    
  26. begin
  27.     status := true;
  28.     cobegin
  29.         for i := 1 to 10 do
  30.             begin
  31.                 O[i];
  32.                 T[i];
  33.             end;
  34.     coend;
  35. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement