From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,108a618b460a8c87 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Tasking differences Date: 2000/07/12 Message-ID: <8kihp8$1cp$1@nnrp1.deja.com>#1/1 X-Deja-AN: 645598176 References: <3969B65A.46942054@baesystems.com> <8kff0n$nnu$1@nnrp1.deja.com> <8kgkdp$kjv$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x64.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Jul 12 19:43:41 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-07-12T00:00:00+00:00 List-Id: In article , Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) wrote: > In article <8kgkdp$kjv$1@nnrp1.deja.com>, Robert Dewar 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.