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

In article <8kihp8$1cp$1@nnrp1.deja.com>, Robert Dewar <robert_dewar@my-deja.com> writes:
> 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

Or ensure your tools provide it.  The DEC Ada Runtime Library is
on the VMS Listings kit.  There are calls to lock and unlock file
variables made during file operations.  Whether those calls are
perfect is certainly less tested than whether 1 + 1 = 2.




  reply	other threads:[~2000-07-13  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       ` Larry Kilgallen
2000-07-12  0:00         ` Robert Dewar
2000-07-13  0:00           ` Larry Kilgallen [this message]
2000-07-13  0:00             ` Robert Dewar
2000-07-12  0:00       ` Ted Dennison
2000-07-12  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