Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Virtue is a relative term. -- Spock, "Friday's Child", stardate 3499.1


devel / comp.lang.fortran / Re: Is there a way to wait for WRITE?

SubjectAuthor
* Is there a way to wait for WRITE?James Van Buskirk
+* Re: Is there a way to wait for WRITE?Thomas Koenig
|`* Re: Is there a way to wait for WRITE?James Van Buskirk
| +* Re: Is there a way to wait for WRITE?Thomas Koenig
| |+* Re: Is there a way to wait for WRITE?Spiros Bousbouras
| ||`- Re: Is there a way to wait for WRITE?Thomas Koenig
| |`* Re: Is there a way to wait for WRITE?James Van Buskirk
| | `* Re: Is there a way to wait for WRITE?Thomas Koenig
| |  `* Re: Is there a way to wait for WRITE?John
| |   `- Re: Is there a way to wait for WRITE?James Van Buskirk
| `* Re: Is there a way to wait for WRITE?gah4
|  `* Re: Is there a way to wait for WRITE?James Van Buskirk
|   `- Re: Is there a way to wait for WRITE?Thomas Koenig
+* Re: Is there a way to wait for WRITE?David Jones
|`* Re: Is there a way to wait for WRITE?James Van Buskirk
| +* Re: Is there a way to wait for WRITE?David Jones
| |`* Re: Is there a way to wait for WRITE?James Van Buskirk
| | `- Re: Is there a way to wait for WRITE?gah4
| +- Re: Is there a way to wait for WRITE?John
| `* Re: Is there a way to wait for WRITE?Thomas Koenig
|  `- Re: Is there a way to wait for WRITE?James Van Buskirk
`* Re: Is there a way to wait for WRITE?Gary Scott
 +- Re: Is there a way to wait for WRITE?Gary Scott
 `* Re: Is there a way to wait for WRITE?James Van Buskirk
  `* Re: Is there a way to wait for WRITE?Gary Scott
   `* Re: Is there a way to wait for WRITE?Gary Scott
    `- Re: Is there a way to wait for WRITE?Gary Scott

Pages:12
Re: Is there a way to wait for WRITE?

<tktvdu$3amf6$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3199&group=comp.lang.fortran#3199

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-1b20-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: Is there a way to wait for WRITE?
Date: Mon, 14 Nov 2022 17:55:10 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tktvdu$3amf6$1@newsreader4.netcologne.de>
References: <tkqav1$1duvq$1@dont-email.me> <tkr3gq$nkk$1@gioia.aioe.org>
<tkrkfj$1hcek$1@dont-email.me>
Injection-Date: Mon, 14 Nov 2022 17:55:10 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-1b20-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:1b20:0:7285:c2ff:fe6c:992d";
logging-data="3496422"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Mon, 14 Nov 2022 17:55 UTC

James Van Buskirk <not_valid@comcast.net> schrieb:
> "David Jones" wrote in message news:tkr3gq$nkk$1@gioia.aioe.org...
>
>> > James Van Buskirk wrote:
>> > However, this caused a problem because the last and of
>> > course most important *.ppm doesn't complete writing
>> > before its thread closes, so I don't get that *.ppm file.
>> > I tried putting a FLUSH(iunit) statement before the
>> > CLOSE(iunit) statement, but still no joy. How am I
>> > supposed to tell the thread to wait for the *.ppm file
>> > to get properly written and saved before returning?
>
>> Have you tried a WAIT or SLEEP function to provide the required delay
>> of a small faction of a second, as judged by experience?
>
> Yeah, that's the first thing I plan to try when I get the
> resources (time and energy) to struggle with this problem
> again.

Another possibility: Have the writing thread open the file under
another name, and upon completion, rename it to the final name
(using the non-standard RENAME function or subroutine).

The other thread can then INQUIRE for the existence of
the file in a loop, possibly with a SLEEP thrown in.

Re: Is there a way to wait for WRITE?

<tkuruj$1sr3l$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3200&group=comp.lang.fortran#3200

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: not_valid@comcast.net (James Van Buskirk)
Newsgroups: comp.lang.fortran
Subject: Re: Is there a way to wait for WRITE?
Date: Mon, 14 Nov 2022 19:01:50 -0700
Organization: A noiseless patient Spider
Lines: 1
Message-ID: <tkuruj$1sr3l$1@dont-email.me>
References: <tkqav1$1duvq$1@dont-email.me> <tkr3gq$nkk$1@gioia.aioe.org> <tkrkfj$1hcek$1@dont-email.me> <tktvdu$3amf6$1@newsreader4.netcologne.de>
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=original
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Nov 2022 02:01:55 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6ffe101ac092825e4106fa45081a56fe";
logging-data="1993845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nRlmKMbMBQDBPNhFGCqgSVadmWj10kZs="
Cancel-Lock: sha1:qPVXi8iO/4KImWiyuYxb/7D+4jM=
X-Priority: 3
X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331
In-Reply-To: <tktvdu$3amf6$1@newsreader4.netcologne.de>
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
 by: James Van Buskirk - Tue, 15 Nov 2022 02:01 UTC

> "Thomas Koenig" wrote in message
> news:tktvdu$3amf6$1@newsreader4.netcologne.de...

> James Van Buskirk <not_valid@comcast.net> schrieb:
> > "David Jones" wrote in message news:tkr3gq$nkk$1@gioia.aioe.org...

> >> > James Van Buskirk wrote:
> >> > However, this caused a problem because the last and of
> >> > course most important *.ppm doesn't complete writing
> >> > before its thread closes, so I don't get that *.ppm file.
> >> > I tried putting a FLUSH(iunit) statement before the
> >> > CLOSE(iunit) statement, but still no joy. How am I
> >> > supposed to tell the thread to wait for the *.ppm file
> >> > to get properly written and saved before returning?

> >> Have you tried a WAIT or SLEEP function to provide the required delay
> >> of a small faction of a second, as judged by experience?

> > Yeah, that's the first thing I plan to try when I get the
> > resources (time and energy) to struggle with this problem
> > again.

> Another possibility: Have the writing thread open the file under
> another name, and upon completion, rename it to the final name
> (using the non-standard RENAME function or subroutine).

> The other thread can then INQUIRE for the existence of
> the file in a loop, possibly with a SLEEP thrown in.

Given that the 'right' solution is asynchronous I/O and that
I have a workaround with Sleep, I have put this issue on the
backburner for now.

At this point the graphics isn't too bad if you consider the
lack of Greek characters and subscripts in the axis labels
and title, so I am back to the calculational component.
I am trying to determine whether I need arbitrary
precision and how much good it will do me. The present
limit seems to be due to an ill-conditioned Jacobian in a
context where another approach may be able to make
forward progress.

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor