From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.52.186.72 with SMTP id fi8mr10398983vdc.3.1411652663053; Thu, 25 Sep 2014 06:44:23 -0700 (PDT) X-Received: by 10.182.2.106 with SMTP id 10mr10254obt.11.1411652662858; Thu, 25 Sep 2014 06:44:22 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w8no259166qac.0!news-out.google.com!rp1ni712igb.0!nntp.google.com!h15no6504255igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Sep 2014 06:44:22 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.113.46.8; posting-account=Lb5doAoAAAAWHET3z2_nBVbFSXaZQG1V NNTP-Posting-Host: 130.113.46.8 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: can someone help me with this code (explanation) From: Stribor40 Injection-Date: Thu, 25 Sep 2014 13:44:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:189148 Date: 2014-09-25T06:44:22-07:00 List-Id: Can someone help me understand this code which is from tutorial found here... http://infres.enst.fr/~pautet/Ada95/chap27.htm and code is here http://infres.enst.fr/~pautet/Ada95/e_c27_p3.ada If we assume John task starts first...first time trough the loop John does Gourmet.Make_A_Hot_Dog(Index, TRUE); which blocks him and Goutmet starts running so once Gourmet stops John continues does Bill calls Gourmet and John wait in the queue in his second loop?