HP3000-L Archives

November 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Thu, 21 Nov 2002 18:23:22 EST
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Stan writes:

> Note that the fourth item the hpfcopy programmer passes into HPFOPEN
>  is a 3 ("domain), with value 4 ("makePERM") ... which inserts the file
>  in the directory immediately.  (Also, this was not a POSIX thing...it
>  was in MPE/iX from day 1, IIRC.)

It's this small difference of putting the filename into the directory at the
beginning of the file open process, prior to the actual file copy, and
putting it there at the close of the process that makes all of the difference
between a polling process being "virtually impossible" to screw up (if all of
the necessary precautions are taken) and one that is flat-out impossible to
screw up.

Nonetheless, Ken Hirsch's RENAME is answer -- and the gold standard. By the
time that the RENAME command would have been issued by a job, the source file
would have been built, fully populated and completely stable. Moving the
file's name into a new group's directory would be an absolutely faithful
state variable indicator of the presence of the file. Using Ken's method,
there can never be problems associated with polling simply because there is
no window of vulnerability, no matter how small it might be.

Wirt Atmar

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2