home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / os2apipm.zip / ADAEXAM / SEL.ADB < prev   
Text File  |  1996-10-12  |  385b  |  26 lines

  1. -- select example
  2. procedure sel is
  3.  
  4. task student is
  5.  entry lecture;
  6. end student;
  7.  
  8. task body student is
  9. begin
  10.  accept lecture do
  11.   null;
  12.  end lecture;
  13. end student;
  14. procedure gohome is
  15. begin null;
  16. end gohome;
  17. begin
  18.    select
  19. --     delay until control_time(15.0);
  20.        delay 15.0;
  21.        gohome;
  22.        then abort
  23.        Student.lecture;
  24. end select;
  25. end sel;
  26.