home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / programming / misc / ada1110b.lha / Examples / Dine / diners.ada < prev    next >
Encoding:
Text File  |  1992-03-02  |  451 b   |  17 lines

  1. WITH Room;
  2. PROCEDURE Diners IS
  3.  
  4. -- Main procedure for dining philosophers. 
  5. -- The endless loop is a device to keep the main program alive, because
  6. -- some Ada implementations kill off library tasks when the main procedure
  7. -- is completed. This device makes the program entirely portable.
  8.  
  9. -- Michael B. Feldman, The George Washington University, November 1990.
  10.  
  11. BEGIN
  12.   Room.Head_Waiter.Open_The_Room;
  13.   LOOP
  14.     DELAY 20.0;
  15.   END LOOP;
  16. END Diners;
  17.