Guest User

Untitled

a guest
Aug 14th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.18 KB | None | 0 0
  1. task type Semaphore is
  2.      entry Wait;
  3.      entry Signal;
  4. end  Semaphore;
  5.  
  6. task body Semaphore is
  7.  begin
  8.   loop
  9.    accept Wait;
  10.    accept Signal;
  11.   end loop;
  12. end Semaphore;
Add Comment
Please, Sign In to add comment