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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,651d9b748faab5c6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie: Code isn't executed References: <20050804161000.1ffa591b@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 06 Aug 2005 05:33:29 GMT NNTP-Posting-Host: 209.86.16.163 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1123306409 209.86.16.163 (Fri, 05 Aug 2005 22:33:29 PDT) NNTP-Posting-Date: Fri, 05 Aug 2005 22:33:29 PDT Xref: g2news1.google.com comp.lang.ada:3994 Date: 2005-08-06T05:33:29+00:00 List-Id: Steve wrote: > > Also, it is a good idea to avoid doing much inside a rendevous other than > moving data around, so I would suggest changing: > > dinnerPartner : Name; > ... > accept Dinner( Partner : Name ) do > dinnerPartner := Partner; > end Dinner > stat(dinnerPartner ) := stat(dinnerPartner )+1; > Put("Susan is having dinner with...."& Name'Image(dinnerPartner )); > New_Line; > > During the rendevous only one of the threads runs, so I suggest getting it > over as soon as possible. This models 2 people dining together, so it makes sense to affect both tasks. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail 01