comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Tasking differences
Date: 2000/07/12
Date: 2000-07-12T00:00:00+00:00	[thread overview]
Message-ID: <8kihp8$1cp$1@nnrp1.deja.com> (raw)
In-Reply-To: sWAj2hU9Vh4n@eisner.decus.org

In article <sWAj2hU9Vh4n@eisner.decus.org>,
  Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) wrote:
> In article <8kgkdp$kjv$1@nnrp1.deja.com>, Robert Dewar
<robert_dewar@my-deja.com> writes:
>
> > Certainly if the problem is that you have multiple tasks
doing
> > Put to the same file without synchronization, then
absolutely
> > anything may happen when you run the program!
>
> But for some given compiler/OS, it might be perfectly orderly
> for situations like log files where the order of the records
> is not of concern.

The problem is FAR worse than arbitrary interleaving. You are
doing uncoordinated writes to a variable (the internal file
variable), so the program is erroneous. Arbitrary interleaving
is actually a very nice behavior, but a program crash due to
inconsistent data structures is not unexpected in this situation
(or at least should NOT be unexpected). If you want this kind
of interleaving, you need to provide a synchronizing agent


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-07-12  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3969B65A.46942054@baesystems.com>
     [not found] ` <8ke8ao$rs3$1@nnrp1.deja.com>
     [not found]   ` <396AECA4.30B03835@baesystems.com>
2000-07-12  0:00     ` Tasking differences Robert Dewar
2000-07-12  0:00       ` Martin Dowie
     [not found] ` <uk8etc788.fsf@baesystems.com>
     [not found]   ` <8kff0n$nnu$1@nnrp1.deja.com>
2000-07-12  0:00     ` Robert Dewar
2000-07-12  0:00       ` Ted Dennison
2000-07-12  0:00         ` Robert Dewar
2000-07-12  0:00       ` Larry Kilgallen
2000-07-12  0:00         ` Robert Dewar [this message]
2000-07-13  0:00           ` Larry Kilgallen
2000-07-13  0:00             ` Robert Dewar
replies disabled

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