home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
lang
/
ada
/
gnat-3.05-
/
gnat-3
/
gnat-3.05-i486-linux-elf-bin
/
examples
/
chop.adb
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-06-11
|
446 b
|
27 lines
------
--::::::::::
--chop.adb
--::::::::::
package body Chop is
-- Dining Philosophers - Ada 95 edition
-- Chopstick is an Ada 95 protected type
-- Michael B. Feldman, The George Washington University,
-- July, 1995.
protected body Stick is
entry PIck_Up when not In_Use is
begin
In_Use := True;
end PIck_Up;
procedure Put_Down is
begin
In_Use := False;
end Put_Down;
end Stick;
end Chop;