comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Task_Barriers
Date: Thu, 25 Jul 2019 22:11:36 +0200
Date: 2019-07-25T22:11:36+02:00	[thread overview]
Message-ID: <qhd2do$q8g$1@dont-email.me> (raw)
In-Reply-To: <1gtjjetkm3np9j7dglv91acgripnee2ao5@4ax.com>

On 7/25/19 8:56 PM, Dennis Lee Bieber wrote:
> 
> 	Ignoring the synchronization part, the loops have a one second delay
> per cycle, and you are incrementing an integer.
> 
> 	Presuming integer is 32 bits, that means a loop that will take
> 
>>>> 0x7FFFFFFF
> 2147483647
>>>>
> 
> seconds to complete. According to my HP-48sx, 2147483647_s ->
> 68.0511038598_yr (assuming integers generate overflow exceptions, your
> program will complete sometime in 2087)

No, T2 will complete then. T1, and so the whole program, will then be blocked 
indefinitely, IIUC the semantics of the Synchronous_Barrier.

-- 
Jeff Carter
"I've seen projects fail miserably for blindly
applying the Agile catechism: we're Agile, we
don't need to stop and think, we just go ahead
and code!"
Bertrand Meyer
150


  reply	other threads:[~2019-07-25 20:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25 16:32 Task_Barriers Gilbert Gosseyn
2019-07-25 16:43 ` Task_Barriers Dmitry A. Kazakov
2019-07-25 18:56 ` Task_Barriers Dennis Lee Bieber
2019-07-25 20:11   ` Jeffrey R. Carter [this message]
2019-07-25 20:17 ` Task_Barriers Simon Wright
2019-07-25 21:59   ` Task_Barriers Randy Brukardt
2019-07-26  7:52     ` Task_Barriers Simon Wright
2019-07-26 23:59       ` Task_Barriers Dennis Lee Bieber
2019-07-26 10:38   ` Task_Barriers Gilbert Gosseyn
2019-07-26 11:09     ` Task_Barriers Dmitry A. Kazakov
2019-07-26 15:03     ` Task_Barriers Simon Wright
2019-07-27  0:10     ` Task_Barriers Dennis Lee Bieber
replies disabled

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