comp.lang.ada
 help / color / mirror / Atom feed
From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: "Ada as a second language" question
Date: Thu, 27 Sep 2001 03:30:26 GMT
Date: 2001-09-27T03:30:26+00:00	[thread overview]
Message-ID: <3BB29D67.836BAAEA@worldnet.att.net> (raw)
In-Reply-To: 3BB25B0A.1FEFFF71@san.rr.com

Darren New wrote:
> 
> If you have this book and a few minutes, can you turn to page 879?
> 
> Therein you find a Load_Manager. The said Load_Manager demonstrates the
> proper way to requeue an entry.
> 
> Unfortunately, it looks like if someone calls Set_Load while nothing
> else is queued, and in particular while there's nothing queued on
> Wait_To_Retry, then the whole system will block. Nothing's queued on the
> private entry that opens the only public entry.
> 
> Am I missing something? Or is this an error in that code? Particularly
> since a paragraph or two later the author says "As the example
> illustrates, the 'Count attribute can be used in a barrier", except he
> doesn't.

You are correct. There is an error in that code. The error can be
fixed by changing Set_Load to an entry, using 'Count attribute for
the barrier condition.



Jim Rogers
Colorado Springs, Colorado USA



  reply	other threads:[~2001-09-27  3:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-26 22:47 "Ada as a second language" question Darren New
2001-09-27  3:30 ` James Rogers [this message]
2001-09-27  5:39 ` J. David Bryan
2001-09-27 17:04   ` Darren New
replies disabled

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