comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Newbie: Code isn't executed
Date: Sat, 06 Aug 2005 05:33:29 GMT
Date: 2005-08-06T05:33:29+00:00	[thread overview]
Message-ID: <JYXIe.1947$RS.1223@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <w5OdnUIN5IsPTG_fRVn-jA@comcast.com>

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



      reply	other threads:[~2005-08-06  5:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04 14:10 Newbie: Code isn't executed Thomas Ruschival
2005-08-04 14:47 ` Ed Falis
2005-08-04 14:48 ` Egil Høvik
2005-08-04 15:07 ` Martin Dowie
2005-08-04 17:37   ` tmoran
2005-08-04 20:57     ` Randy Brukardt
2005-08-05  6:11       ` Vinzent 'Gadget' Hoefler
2005-08-06  3:52         ` tmoran
2005-08-04 20:20   ` Simon Wright
2005-08-04 15:09 ` Martin Dowie
2005-08-04 16:37 ` SOLVED: " Thomas Ruschival
2005-08-05  2:43 ` Steve
2005-08-06  5:33   ` Jeffrey Carter [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox